AW: Link
Hello, I was already trying this. But it didn't works. Here is HTML: a wicket:id=faultLinkESB Fehler/a | a wicket:id=protokollierungLinkProtokollierung/a | a wicket:id=userManagementLinkBenutzerverwaltung/a | a wicket:id=changePasswordLinkPasswort auml;ndern/a And here the Java: Link faultLink = new Link(faultLink) { @Override public void onClick() { setResponsePage(Fault.class); } }; faultLink.setAutoEnable(true); These links are in my parent page. The FaultPage extends of my parent page. Could that be the problem? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 – 209 email: christoph.ma...@t-systems.com -Ursprüngliche Nachricht- Von: Martin Grigorov [mailto:mgrigo...@apache.org] Gesendet: Montag, 11. November 2013 11:32 An: users@wicket.apache.org Betreff: Re: Link Hi, See org.apache.wicket.markup.html.link.Link#setAutoEnable(true). This will automatically render disabled link for links which link to the current page. On Mon, Nov 11, 2013 at 12:23 PM, christoph.ma...@t-systems.com wrote: Hello, there are 4 links at the top of my page. Every link should forward to another page. But the User couldn’t see on which page he is. I want to change the color of the links depending on the page which the user has chosen. How can I realize this? I implemented the links like this: Link faultLink = new Link(faultLink) { @Override public void onClick() { setResponsePage(Fault.class); } }; Christoph - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Link
Can you give an example? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Montag, 11. November 2013 11:34 An: users@wicket.apache.org Betreff: Re: Link Maybe use CSS? Add a class attribute with the name of the page? On Mon, Nov 11, 2013 at 11:23 AM, christoph.ma...@t-systems.com wrote: Hello, there are 4 links at the top of my page. Every link should forward to another page. But the User couldn't see on which page he is. I want to change the color of the links depending on the page which the user has chosen. How can I realize this? I implemented the links like this: Link faultLink = new Link(faultLink) { @Override public void onClick() { setResponsePage(Fault.class); } }; Christoph - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Link
I mean an example for the CSS Solution Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 – 209 email: christoph.ma...@t-systems.com -Ursprüngliche Nachricht- Von: Martin Grigorov [mailto:mgrigo...@apache.org] Gesendet: Montag, 11. November 2013 12:41 An: users@wicket.apache.org Betreff: Re: Link BookmarkablePageLink faultLink = new BookmarkablePageLink(faultLink, Fault.class); faultLink.setAutoEnable(true); On Mon, Nov 11, 2013 at 1:37 PM, christoph.ma...@t-systems.com wrote: Can you give an example? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Montag, 11. November 2013 11:34 An: users@wicket.apache.org Betreff: Re: Link Maybe use CSS? Add a class attribute with the name of the page? On Mon, Nov 11, 2013 at 11:23 AM, christoph.ma...@t-systems.com wrote: Hello, there are 4 links at the top of my page. Every link should forward to another page. But the User couldn't see on which page he is. I want to change the color of the links depending on the page which the user has chosen. How can I realize this? I implemented the links like this: Link faultLink = new Link(faultLink) { @Override public void onClick() { setResponsePage(Fault.class); } }; Christoph - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Link
Ok thanks. I did the same like this: Link faultLink = new Link(faultLink) { @Override public void onClick() { setResponsePage(Fault.class); } @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (pageName.equals(Fault.class.getSimpleName())){ tag.put(class, pageName); } } }; Christoph - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Link
Hey, For a simple solution just overwrite onComponentTag(). But I think there a already complete components addressing this issue. @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (getPage().getPageClass() == Fault.class) { // inline style tag.put(style, color: red;); // css class tag.put(class, active); } } Cheers, Christian Von: christoph.ma...@t-systems.com [mailto:christoph.ma...@t-systems.com] Gesendet: Montag, 11. November 2013 11:23 An: users@wicket.apache.org Betreff: Link Hello, there are 4 links at the top of my page. [cid:eda0a64b-ce32-4c04-b1b1-cc10df635636] Every link should forward to another page. But the User couldn't see on which page he is. I want to change the color of the links depending on the page which the user has chosen. How can I realize this? I implemented the links like this: Link faultLink = new Link(faultLink) { @Override public void onClick() { setResponsePage(Fault.class); } }; Christoph