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:

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

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 HTML

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

Re: Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread itayh
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 [EMAIL PROTECTED] wrote: Hi, I have AjaxCheckBox. I want to be able to set other components to be disable or enable when the use

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

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 wicket:extend and /wicket:extend) but I don't see them in

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread itayh
Thank you, it works great. jWeekend wrote: You can use wicket:head 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: Hi, I use Markup inheritance

Re: image link inside of table problem

2008-11-11 Thread itayh
is the url different from what it is supposed to be? you need to learn how to provide more *useful* information if you want help. -igor On Tue, Nov 11, 2008 at 8:09 AM, itayh [EMAIL PROTECTED] wrote: Hi, I am having a table with deactivate and delete link columns. In the delete column I want

Re: image link inside of table problem

2008-11-11 Thread itayh
Thanks Ned, that was the problem Ned Collyer wrote: if you have em's wrapped around the link, its probably disabled. Eg, from if(poll.getStatus().equals(VidgetStatus.ACTIVE)) deleteLink.setEnabled(false); Rgds Ned itayh wrote

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: td a href=# wicket:id=active-link span wicket:id=poll.active /td td a href=#

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: Seems a typo either in the code you

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 that contain a hidden

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: div id=silverlightControlHost !--param name=onerror value=onSilverlightError /-- img src=http://reshet.attractv.net/reshet/img/no_silverlight.jpg; usemap=#no_silverlight border=0 / map name=no_silverlight !--area

Re: How to plant dynamic data to the html

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

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 PROTECTED] wrote: Hi all, I have

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.

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 need

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

2008-10-28 Thread itayh
, 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 can add details and the OK button save the data and set the visability of the form to false. The problem

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-19 Thread itayh
/ 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: In this case the url will contain the parameters. But since I

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-17 Thread itayh
: I don't understand. Reading the javadoc InlineFrame should set the src attribute. If that is not the case, try setting the src attribute with something like: myFrame.add(new AttributeModifier(src, new Model(urlFor(MyFrame.class, pageParameters; Regards, Erik. itayh

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-16 Thread itayh
); // changed to getString doSomething(url); } mount(new IndexedHybridUrlCodingStrategy(iframe/MyFrame, MyFrame.class)); // removed leading / Good luck! Erik. itayh wrote: Creating the InlineFrame component: PageParameters params = new PageParameters(); params.add(url

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

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread itayh
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. Please show us complete code fragments. Both the part where you create

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 like: PageParameters params = new PageParameters

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

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-26 Thread itayh
. Erik van Oosten wrote: You should use one of the other HybridUrlCoding strategies. E.g. the IndexedHybridUrlCodingStrategy. If you need an MixedParamHybridUrlCodingStrategy, I can mail it to the list. Regards, Erik. itayh wrote: Hi, I am using HybridUrlCodingStrategy for my

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();

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