User permissions

2009-01-14 Thread itayh
Hi, I would like to create different users that will have different permissions. For example if I have a page with several buttons, some users will just see that page while others will be able to push the buttons. I read the Wicket-Security at Wicket Stuff site: http://wicketstuff.org/confluence/

Accessing username from page problem

2009-01-12 Thread itayh
Hi, I have my custom session class that extends AuthenticatedWebSession and I implement the authenticate method. In order to get the user name from anywhere in the code I save the user name in the authenticate method to local member and then I can use it anywhere. The problem is if I restart my

Support multiple views for different user

2009-01-11 Thread itayh
Hi, Currently in my server anyone that logged in can add and see all the data in the system (that he added or other people added) I need the ability to create different users and each user can see only the data that he enter. Does wicket has a build in solution for this scenario? Thanks in adva

Re: Javascript call to wicket

2008-12-16 Thread itayh
Hi Erik, I used your solution and it works great for ff, while ie seem to have problems with it. Have you run it also in ie? Thanks, Itay Erik van Oosten wrote: > > I just finished an experiment with something like that. Its still ugly > and very static, but here is my code. > > In the HT

Re: Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread itayh
>} > }; > > For this to work externalXapUrlField will have be a variable (so that you > can refer back to it) and > have externalXapUrlField.setOutputMarkupId(true)... > > Ernesto > > >> On Tue, Dec 9, 2008 at 10:31 AM, itayh <

Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread itayh
Hi, I have AjaxCheckBox. I want to be able to set other components to be disable or enable when the use check or unckeck the AjaxCheckBox. In my javacode: Several text fields in the next format: TextField externalXapUrlField = new TextField("externalXapUrl"); add(externalXapUrlField, new Propert

button click and Form with CompoundPropertyModel lose its data

2008-12-01 Thread itayh
Hi, I am creating a form in the next format: private abstract class EditForm extends Form{ public EditForm(String id, Poll poll) { /* * We wrap the poll bean with a CompoundPropertyModel, this allows * us to easily connect form components to t

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread itayh
Thank you, it works great. jWeekend wrote: > > You can use or HeaderContributors. > See http://cwiki.apache.org/WICKET/javascript-and-css-support.html this . > > Regards - Cemal > http://www.jWeekend.co.uk http://jWeekend.co.uk > > > itayh wrote: >

onLoad javascript event with Markup inheritance

2008-11-25 Thread itayh
Hi, I use Markup inheritance in my site in order to keep common logic in the base page. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the and ) but I don't see them in the generated page (the bas

Re: image link inside of table problem

2008-11-11 Thread itayh
e); > > Rgds > > Ned > > > > itayh wrote: >> >> Hi Charlie, >> You are correct, I removed some not relevant data. >> Here is my table full markup: >> >> >> >>

Re: image link inside of table problem

2008-11-11 Thread itayh
not closed the span or anchor > tags, > and Wicket won't accept that at all. > > Please post your real markup! > > Charlie. > > > > > > 2008/11/11 Igor Vaynberg <[EMAIL PROTECTED]> > >> what url is generated for that link (look in sourc

image link inside of table problem

2008-11-11 Thread itayh
Hi, I am having a table with deactivate and delete link columns. In the delete column I want to have delete image, so pressing on the image will activate the delete function on the server. My html code: < a href="#" wicket:id="active-link" >< span wicket:id="poll.active" > < a href="#" wicket:i

Re: problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-11-10 Thread itayh
Thank you all for all the help. Changing the type of the button to button instead of submit fix that problem. itayh wrote: > > The first line is actually name = item.getName(); there was a copy typo > when I paste here the code. Any Idea? > > Pablo Abad wrote: >> >>

Re: problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-11-09 Thread itayh
Hi Timo, Changing it to link solve the problem, but created a new one. It changes the look and feel of my page (since I am using buttons for save and cancel in my site). Thank in advance, Itay Timo Rantalaiho wrote: > > On Tue, 28 Oct 2008, itayh wrote: >> I have a page th

Re: How to plant dynamic data to the html

2008-11-03 Thread itayh
10x alot, it works Jeremy Thomerson-5 wrote: > > Try this: > http://www.nabble.com/Adding-Adobe-Media-Player-in-wicket-to19797690.html#a19827296 > > > -- > Jeremy Thomerson > http://www.wickettraining.com > > On Mon, Nov 3, 2008 at 10:52 AM, itayh <[EMAIL P

Re: How to plant dynamic data to the html

2008-11-03 Thread itayh
r in dynamic way from my java code. To be more accurate what I need is to set the next url m=http://SWITCH434-01.castup.net/cunet/gm.asp?ai=434&ar=08-09-18_22-00-30&ak=null"; from the java code according to the url I get from the user. Any simple way to do this in wicket? Than

How to plant dynamic data to the html

2008-11-03 Thread itayh
Hi all, I have a peace of html that looks like that: img src="http://reshet.attractv.net/reshet/img/no_silverlight.jpg"; usemap="#no_silverlight" border="0" /> http://go.microsoft.com/fwlink/?LinkID=124807"; /> I need to set

Refresh parent page from an iframe

2008-11-02 Thread itayh
Hi, I have a page that contains several iframes with some actions in each iframe. When I press on some of the actions I want the parent page to be updated (since the actions affect the whole parent page with the iframes). But every attempt to update the page is actually updating the iframe only.

Re: problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-10-28 Thread itayh
gameItem --> item) >>> On Tue, Oct 28, 2008 at 11:41 AM, itayh <[EMAIL PROTECTED]> wrote: >>> >>>> protected void onEditItem(Item item) { >>>>name = gameitem.getName(); >>>>addItemsForm.setVisible(true); >>>> }

Re: problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-10-28 Thread itayh
ue, Oct 28, 2008 at 11:41 AM, itayh <[EMAIL PROTECTED]> wrote: >> >> Hey, >> >> I have a page that contain a hidden form. When the user press on "Add >> Item" >> or "Edit Item" then I set the visability of the form to true and the user

problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-10-28 Thread itayh
Hey, I have a page that contain a hidden form. When the user press on "Add Item" or "Edit Item" then I set the visability of the form to true and the user can add details and the OK button save the data and set the visability of the form to false. The problem is if the user press on cancel. I nee

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-19 Thread itayh
ound and replace the url / chars with different ones but it is quite ugly. You have any Idea why it is like that? Erik van Oosten wrote: > > Please check your setup then. I understand you are using sitemesh. Maybe > this interferes. > > Erik. > > itayh wrote: >> I

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-16 Thread itayh
ers; > > > Regards, > Erik. > > > > itayh wrote: >> Hi Erik, >> >> You are right, the src AttributeModifier overwrites params values. If I >> am >> not using the src AttributeModifier then the params has values and if I >> use >

page expire url

2008-10-16 Thread itayh
Hi all, Is there any way I can control the page expire url? I am using ajax self updating and when the page expire for some reason it turns into host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage I need i

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-16 Thread itayh
(myFrame); > > public MyFrame(PageParameters params){ > String url = params.getString("0"); // changed to getString > doSomething(url); > } > > mount(new IndexedHybridUrlCodingStrategy("iframe/MyFrame", > MyFrame.class)); // removed leading / &

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread itayh
I tried also for the url mounting: mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class)); In all cases the params inside the constructor of MyFrame class has no values in them (size = 0) Thanks, Itay Erik van Oosten wrote: > > Itayh, > > What you do seems alright.

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread itayh
Any Idea? itayh wrote: > > Thx for the quick response. > > I cahnged the url mount in my application to > mount(new IndexedHybridUrlCodingStrategy("/iframe/MyFrame", > MyFrame.class)) ... > > My problem is that still when i try to create iframe l

Clustering with tomcat - design consideration

2008-09-28 Thread itayh
Hi, We plan to run our servers on a cluster environment. We are using Tomcat. I looked and tried to see how is the best way to configure cluster wicket but all I could find was to use the default. Is there any paper that say what are the benefits/problems of any option? Also in case I use the d

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-26 Thread itayh
/MyFrame", MyFrame.class)) ... The param is runtime value and I can not know it when creating my app. Erik van Oosten wrote: > > You should use one of the other HybridUrlCoding strategies. E.g. the > IndexedHybridUrlCodingStrategy. > > If you need an MixedParamHybridUrlC

Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-25 Thread itayh
Hi, I am using HybridUrlCodingStrategy for my url's (I need that the mount point will preserved even after invoking listener interfaces). I am creating IFrames using InlineFrame class. In order that the url of the IFrame will be what I want I do: PageParameters params = new PageParameters(); pa

Problem with sitemesh decorator in wicket iframe

2008-09-23 Thread itayh
Dear All, I am using sitemesh decoration framework in my wicket application. Everything work perfectly until I tried to create iframes. I am using InlineFrame class for creating the iframes. Java Code: InlineFrame myFrame = new InlineFrame("MyFrame", new MyFrame(this)); Where MyFrame is simple w