[
https://issues.apache.org/jira/browse/WICKET-2049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677014#action_12677014
]
medavid edited comment on WICKET-2049 at 2/26/09 7:01 AM:
--------------------------------------------------------
we have pages(containing forms) that have a different markup for each client
using the application. We differ using the setStyle method in Wicket. Usually
it is just some layout, but sometimes it is that certain fields need to be
removed. In the current situation we can do two things: hardcode it in the
page, checking the style/ client name or hacking around it using a display:none
in the markup. Both options don't satisfy me, so I was looking for a different
solution. Any other alternative approaches are welcome
was (Author: medavid):
we have pages(containing forms) that have a different markup for each
client using the application. We differ using the setStyle method in Wicket.
Usually it is just some layout, but sometimes it is that certain fields need to
be removed. In the curren situation we can do two things: hardcode it in the
page, checking the style/ client name or hacking around it using a display:none
in the markup. Both options don't satisfy me, so I was looking for a different
solution. Any other alternative approaches are welcome
> beforeRender not called for behaviour added to ComponentTag
> -----------------------------------------------------------
>
> Key: WICKET-2049
> URL: https://issues.apache.org/jira/browse/WICKET-2049
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.5
> Reporter: David
> Assignee: Juergen Donnerstag
> Attachments: ComponentTagAddBehaviourBug.zip
>
>
> When adding a IMarkupFilter and adding a behaviour to the ComponentTag, the
> beforeRender method is never called, only onComponentTag will be called, but
> by then it is too late to modify the component.
> Usecase: I would like to make components hidden if the markup contains
> wicket:hidden="hidden". For this i need to modify the components visiblitiy
> depending on if the markup contains that attribute.
> The attached quickstart will never reach the
> System.out.println("beforeRender: should hide component"); in
> HiddenComponentMarkupFilter
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.