Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support conditional parameters (f:param) #207

Merged
merged 1 commit into from
May 18, 2015
Merged

Support conditional parameters (f:param) #207

merged 1 commit into from
May 18, 2015

Conversation

janario
Copy link
Contributor

@janario janario commented May 18, 2015

Sometimes it easier to build urls with conditional f:param
For example, usually I have some links with css styles and customization like:

<pretty:link mappingId="page" >
<i class="style"/>
<f:param value="#{myparam}" disable="#{not myLinkRequireParam}"/>
</pretty:link>

But once 'disable' is not verified pretty:link will always add it and fail for mismatch parameters
Then I have to do something like: (and always remember to change all links when change one of them)

<pretty:link mappingId="page" rendered="#{not myLinkRequireParam}">
<i class="style"/>
</pretty:link>
<pretty:link mappingId="page" rendered="#{myLinkRequireParam}">
<i class="style"/>
<f:param value="#{myparam}" />
</pretty:link>

chkal added a commit that referenced this pull request May 18, 2015
Support conditional parameters (f:param)
@chkal chkal merged commit d94cc0d into ocpsoft:master May 18, 2015
@chkal
Copy link
Member

chkal commented May 18, 2015

Awesome. Thanks a lot. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants