Re: Css for panel

2012-08-29 Thread Mansour Al Akeel
with Wicket, but I give it a shot... :-) > > @Override > public void renderHead(IHeaderResponse response) { > super.renderHead(response); > response.renderCSSReference(YOUR_CSS_REF); > } > > private static final Resour

Css for panel

2012-08-29 Thread Mansour Al Akeel
I have a component that extends panel. I need to add css customization to this panel. I can include the css in the over all site CSS, but I like to separate the CSS for this panel. For example, MyPanel.java MyPanel.html MyPanel.css I like to have MyPanel.css included in the header of the html whe

Re: Navigation bar links

2012-08-21 Thread Mansour Al Akeel
ote: > > You can use a disabled link, which will render as a . > > > > Sven > > > > > > On 08/21/2012 08:10 AM, Mansour Al Akeel wrote: > >> > >> I am looking to produce the following mark up: > >> > >> Home > >>

Navigation bar links

2012-08-20 Thread Mansour Al Akeel
I am looking to produce the following mark up: Home About

Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Mansour Al Akeel
Josh, I tried to run the app, but I couldn't resolve an issue with maven. May be you have seen something similar before. I had deleted the corresponding wicket/1.4.12 direcotry from maven repo to forse it to re download, but no luck. I am using maven 3. Do I need to install all these required pr

Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Mansour Al Akeel
s.compref.BookmarkablePageLinkPage > > G'luck > > Marco. > > On 28 March 2011 07:48, Mansour Al Akeel wrote: > > Josh, > > Yes each link is reloading a different page, and the list of the links > > is not rebuilt. Only the contents part of the page. > > W

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
Josh, Yes each link is reloading a different page, and the list of the links is not rebuilt. Only the contents part of the page. What would your css alternative solution be ? How can I get the clicked link disabled and assing it a class, excluding the rest of the links, without breaking the ajax f

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
of great men should always be > measured by the means they have used to > acquire it." > - Francois de La Rochefoucauld > > > > On Sun, Mar 27, 2011 at 8:37 PM, Mansour Al Akeel > wrote: > > > Hello all, > > I have created a dynamic menu using AjaxLin

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
No answer yet. Any thing not clear ? On Sun Mar 27,2011 07:37 pm, Mansour Al Akeel wrote: > Hello all, > I have created a dynamic menu using AjaxLink. Clicking a link results in > dispalying the correcponding class on the screen. It's common, to > display the clicked link in

Re: Problem get selected value using dynamic select with optgroup

2011-03-27 Thread Mansour Al Akeel
I didn't clearly understand the question. But another shot in the dark ;) You mean, is the behaviour of the ajax link depends on the clicked item ? If that's what you mean, then I like to be able to disable the clicked link while viewing the corresponding panel. The second part about the onchang

Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
Hello all, I have created a dynamic menu using AjaxLink. Clicking a link results in dispalying the correcponding class on the screen. It's common, to display the clicked link in a different color/background ... etc. But I wasn't able to find a way to achieve this. Any advice tutorial, article ?

Re: Navigation and Adding Panels dynamically.

2011-03-27 Thread Mansour Al Akeel
structor.. > > you dont need setOutputMarkupId(true) as you are already using > setOutputMarkupPlaceholderTag(true) > > and yes you are using replacewith correctly ,i dont think there is any > problem in this code.. > > On Sun, Mar 27, 2011 at 2:08 PM, Mansour Al Akeel > w

Re: Navigation and Adding Panels dynamically.

2011-03-27 Thread Mansour Al Akeel
mal way etc. what you want to do.. > > On Sun, Mar 27, 2011 at 12:56 PM, Mansour Al Akeel > wrote: > > Martin, > > I could not find any help using this extension. May be I missed something > > somewhere. > > Let's look at a peice of code of w

Re: Navigation and Adding Panels dynamically.

2011-03-27 Thread Mansour Al Akeel
O error generated ! Is't correct to conclude that the html template for EditUserScreen is never parsed, and instead the Panle.java is used ? Shouldn't the old panel should be removed in this case, at least? On Fri Mar 25,2011 03:06 pm, Mansour Al Akeel wrote: > Thank you Martin, >

Re: Navigation and Adding Panels dynamically.

2011-03-25 Thread Mansour Al Akeel
check whether the previous/next wizard step > should be shown to the current user depending on its privileges. > > On Fri, Mar 25, 2011 at 1:57 AM, Mansour Al Akeel > wrote: > > > I do have the need to implement different screens. Each screen is a > > Panel that w

Navigation and Adding Panels dynamically.

2011-03-24 Thread Mansour Al Akeel
I do have the need to implement different screens. Each screen is a Panel that will be displayed when requested from the screens menu. The screen menu should display the items depending on the functionality the user has access to. Can some one point me to an article or a tutorial with similar re

Re: Authorization using JAAS and getting the Principal.

2011-03-24 Thread Mansour Al Akeel
Thank you. Will try that. On Thu Mar 24,2011 08:08 pm, Mansour Al Akeel wrote: > On Tue Mar 22,2011 10:15 pm, Zilvinas Vilutis wrote: > > https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-Wicketsetup > > and call Se

Re: Authorization using JAAS and getting the Principal.

2011-03-24 Thread Mansour Al Akeel
> E-mail: cika...@gmail.com > > > > On Tue, Mar 22, 2011 at 6:13 PM, Mansour Al Akeel > wrote: > > Woops forgot to include the way I am getting the request. > > > > private User getLoggedInUser() { > > ?? ??ServletWebRequest servletWebReque

Re: Authorization using JAAS and getting the Principal.

2011-03-22 Thread Mansour Al Akeel
= request.getUserPrincipal(); User user = (User) principal; return user; } I appreciate your help. On Tue Mar 22,2011 08:42 pm, Mansour Al Akeel wrote: > Hello all, > > I am authenticating a user, and it's working fine through our own Jaas > module implementation. However, I am try

Authorization using JAAS and getting the Principal.

2011-03-22 Thread Mansour Al Akeel
Hello all, I am authenticating a user, and it's working fine through our own Jaas module implementation. However, I am trying to get one of the Panels to display based on the logged in user. I am not using wicket-aut yet, and looking to do this by obtaining the Principal implementaton from the Htt

Re: Maven archetype and tomcat:run

2010-07-19 Thread Mansour Al Akeel
It runs ok under a standard tomcat installation, and I can do remote debugging. However, it's not as convenient as if it's running from maven, where I can view changes easily. In my case, changes has to be deployed to tomcat installation after re-packaging the war file. When dealing with maven-je

Re: Maven archetype and tomcat:run

2010-07-19 Thread Mansour Al Akeel
rovided > > 2010/7/19 Mansour Al Akeel > >> Martin, >> thank you. But I don't have servlet.jar in the lib folder. There's no >> lib folder, since I am using maven archetype. >> If I have to exclude it from POM.XML then how ? >> tomcat plugin depends o

Re: Maven archetype and tomcat:run

2010-07-19 Thread Mansour Al Akeel
n Grigorov wrote: > Remove servlet.jar from yourApplication.war#WEB-INF/lib/ folder > > > 2010/7/18 Mansour Al Akeel > >> Hello all: >> I am trying to run tomcat from maven and including openEJB. The >> command I am using to run tomcat: >> >> mvn tomca

Maven archetype and tomcat:run

2010-07-17 Thread Mansour Al Akeel
Hello all: I am trying to run tomcat from maven and including openEJB. The command I am using to run tomcat: mvn tomcat:run The error I am getting : Jul 18, 2010 6:53:29 AM org.apache.catalina.startup.Embedded start INFO: Starting tomcat server Jul 18, 2010 6:53:29 AM org.apache.catalina.core.St

Re: Models and panel updates

2010-07-15 Thread Mansour Al Akeel
roperty it provides, but it is hard-wired > on the object you give to its constructor. > > Hope this helps > > Sven > > > On 07/15/2010 08:36 PM, Mansour Al Akeel wrote: >> >> Sven, >> thank you, but it worked when using this ? >> >> add(new

Re: Models and panel updates

2010-07-15 Thread Mansour Al Akeel
you look at the source code for AjaxEditableLabel you could've seen >>that it is not suited for CompoundPropertyModel usage. > > AjaxEditableLabel is very well capable of working with > CompoundPropertyModels, see AjaxEditableLabel#getParentModel(). > > Regards > > Sve

Re: Models and panel updates

2010-07-15 Thread Mansour Al Akeel
results for the corresponding product in the Labels, but not in the AjaxEditableLabel. On Thu, Jul 15, 2010 at 3:48 PM, Martin Makundi wrote: > you need to add the updated panel into target: > > target.addComponent(panelToBeUpdated); > > > > 2010/7/15 Mansou

Re: Models and panel updates

2010-07-15 Thread Mansour Al Akeel
I just tried it. It doesn't update the panel. Here's the full code: public class ProductDetails extends Panel { @EJB private ProductServicesLocal productServices; public ProductDetails(String id, final Product product) { super(id); setOutpu

Re: Models and panel updates

2010-07-15 Thread Mansour Al Akeel
ear all your problems. Using > compoundpropertymodel you will get all kinds of surprises.. sometimes, > and spend lot of extra time resolving. > > ** > Martin > > 2010/7/15 Mansour Al Akeel : >> Hello all, I have been trying to resolve this issue. I have a panel >>

Models and panel updates

2010-07-15 Thread Mansour Al Akeel
Hello all, I have been trying to resolve this issue. I have a panel that shows a product info. public class ProductDetails extends Panel { public ProductDetails(String id, final Product product) { super(id); setOutputMarkupId(true); this.set

Re: Panel update with Ajax

2010-07-13 Thread Mansour Al Akeel
.id")) This one is not working as expected. Do you have a ling for an example ? > > Note that using the CompoundPropertyModel as suggested earlier is much > easier. > > Regards > > Sven > > On 07/13/2010 05:16 AM, Mansour Al Akeel wrote: >> >> Thank you. I

Re: Panel update with Ajax

2010-07-12 Thread Mansour Al Akeel
Thank you. I didn't know that wicket will pick the properties without getters. I thought I have to create a getter for each property before it's seen. Now the remaining issues: When I use soemthing like : add(new Label("id", new PropertyModel(this, "model.id"))); I get an exception

Re: Panel update with Ajax

2010-07-12 Thread Mansour Al Akeel
 add(new Label("codProduct")); > >                add(new Label("tpVat")); >        } > >        public void setCurrentProduct(Product product) { >                setDefaultModel(new CompoundPropertyModel(product)); >        } > } > > > HTH > > Sven > > > On 0

Panel update with Ajax

2010-07-10 Thread Mansour Al Akeel
I have a panel that displays a product info : public class ProductDetails extends Panel { private IModel model; public ProductDetails(String id, Product product) { super(id); setOutputMarkupId(true); this.setCurrentProduct(product);

Re: SV: SV: Wicket and portlets JSR 286

2010-01-06 Thread Mansour Al Akeel
In fact, I tried to send String as events, and I got the same error. Finally I found that I had to use the full name for the String class java.lang.String . http://example.com";>x:ReportName java.lang.String It's working now. Thank you. On Wed Jan 06,2010 11:04 am, Wilhelmsen Tor Iv

Re: SV: Wicket and portlets JSR 286

2010-01-05 Thread Mansour Al Akeel
Thank you Tor: I am using wicket 1.4.5. I was able to find some examples for events but I am having difficulties getting my code to work with wicket. Here's a refrence: http://blog.xebia.com/2009/04/19/inter-portlet-coordination-with-jsr-286/ In my code I am trying to send the event from onClick,

Wicket and portlets JSR 286

2010-01-05 Thread Mansour Al Akeel
I am having a problem finding a resource or an example for portlets communications with events "processEvent(EventRequest request, EventResponse response)" how do I dispatch and event from wicket page? for example if I have a ViewPage and I need to send an event to a subscribed portlet , how do I d

Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
86 container, > shame the same can't be said for a JSR-168 container, ie Pluto :( > > cheers, > Steve > > > > > On 04/01/2010, at 5:17 PM, Mansour Al Akeel wrote: > > > Yes, this is JS2.2, but how where you able to tell it it's JSR286 ? > &g

Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
l new to wicket, but enjoying it already :) On Mon Jan 04,2010 04:52 pm, Steve Swinsburg wrote: > Absolutely that would be great. BTW I assume this is Jetspeed 2 since its > JSR286? > > > > On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote: > > > I checked jetspeed

Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
Steve Swinsburg wrote: > Hi Mansour, > > Thats just the Tomcat log, you should have a portal log that has the actual > exception or error that occurred? > > cheers, > Steve > > > On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote: > >> Sorry, Forgot to include t

Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/reports-0.5.4] startup failed due to previous errors On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel wrote: > Thank you Tor: > > He

Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
Thank you Tor: Here's what I have. this is copied from the web.xml from the wicket maven project : http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";

Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
I am trying to understand portlets using wicket. I read on multiple resources, that wicket supports JSR 286 in a transparent way. However, I can not see any reference to a simple portlet application to adopt as the basis for my project and build on top of it. I have checked out the examples from th

Re: Issue regarding refresh a wicket page portlet in Jetspeed portal

2009-05-27 Thread Mansour Al Akeel
Arun: See my comment. On Wed May 27,2009 04:01 pm, Arun Wagle wrote: > Hello , > > I have an issue with refreshing the portlet in jetspeed. I will try to > explain the issue below > > I have a navigation in Jetspeed which point to a psml file. This psml file > will bring up a wicket portlet. >