Re: [Wicket-user] Role authorization per page

2006-10-19 Thread Eelco Hillenius
> Attempting to play with the application or Session AuthorizationStrategy
> doesn't seem to be a good idea because it I would need to somehow inject the
> current page into the "Authorization Process".

I think you are trying too hard to fit the existing authorization
strategies, which in fact are meant as just examples, in your
situation. To use those, you as you mention have to push the 'meta
data' before rendering starts. But that's a pretty awkward programming
model. What you should do is introduce some interface - like
IMyAuthCheck { boolean hasAccess() } - and develop a custom strategy
that checks whether a component implements this interface, and when it
does, perform the check.

> So, I am back to adding the AuthorizationStrategy to the Page.  Now, is
> there a good reason why component.isActionAuthorized() is final
> (1.2-SNAPSHOT)?

Because when isActionAuthorized is final, it guarantees that
authorization strategies are being used. We could remove final if
people really want it, but I'd be afraid it would encourage not using
authorization strategies at all. To accomplish the same is rather
easy. Just introduce that extra interface and develop a custom auth
strat that uses that.

> To try an work out my solution, I will remove the final modifier from the
> codebase, then have my Page class override it to include a check to a Page
> level IAuthorizationStrategy as well as the Application check.

If you still want that final removed after this email, please add a
feature request on http://issues.apache.org/jira/browse/WICKET. We
might have to vote about it too.

> While I am on the topic is there any reason why
> MetaDataRoleAuthorizationStrategy (or AbstractRoleAuthorizationStrategy) do
> not implement Serializable?

Yeah, the strategy is not meant to be kept as instance variables of
components or sessions. You should let Wicket manage the auth strat,
and just provide the one you want by doing
getSecuritySettings().setAuthorizationStrategy(myStrat) in your
application's init method. If you want to combine multiple, use the
decorator: CompoundAuthorizationStrategy

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-data-ejb3

2006-10-19 Thread Ayodeji Aladejebi
is this necessary? :) ...a tool like NB5.5 (its free) gives an awesome speed in putting wicket and ejb3 project together. why put up another framework. what wickets need is to encourage the great plugins for the market leading IDEs. wicket is great but will do greater with this.
just wat i think anywayOn 10/17/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
And since you now have an underused, working sf.net account... :-)
(underused because the security breach was a couple of months ago ;-)MartijnOn 10/17/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> No plans from the core devs. But anyone from the list of wicket-stuff
> committers could take it up if they like.>> Eelco>>> On 10/17/06, cowwoc <[EMAIL PROTECTED]> wrote:> > Hi,
> >> > There exists a module called wicket-contrib-data-hibernate-3.0. Are> > there plans for releasing wicket-contrib-data-ejb3 in the near future? I> > know Cheeser was working on one but I don't know how far along it is.
> >> > Thanks,> > Gili> >> >> >> > -> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> > 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> >> > ___> > Wicket-user mailing list> > 
Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user> >> >> >
> >>> -> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>--http://www.thebeststuffintheworld.com/vote_for/wicket
">Votefor http://www.thebeststuffintheworld.com/stuff/wicket">Wicketat the 
http://www.thebeststuffintheworld.com/">Best Stuff inthe World!-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-data-ejb3

2006-10-19 Thread Martijn Dashorst
This is not about ide integration, it is about having usefull models
and components for EJB3.

Netbeans will not, ever, give you a Wicket PersistentTextfield
component that goes searching for not null, length and other JPA
annotations that might be of interest.

A form and model that takes into account the @Id and @Version
annotations is also something that can come out of this project.

Heck, even a PersistentBeanPanel where you just provide your
persistent bean and the panel creates a view of all properties, with
an edit pane for editing the persistent bean which is triggered
through Ajax and which will persist the modified data on submission
and return to the view state.

I could go on and on and on... An Ejb3 package could be the cherry on
the already jummy Wicket cake.

Martijn

On 10/19/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> is this necessary? :) ...a tool like NB5.5 (its free) gives an awesome speed
> in putting wicket and ejb3 project together. why put up another framework.
> what wickets need is to encourage the great plugins for the market leading
> IDEs. wicket is great but will do greater with this.
>
> just wat i think anyway
>
>
> On 10/17/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > And since you now have an underused, working sf.net account... :-)
> >
> > (underused because the security breach was a couple of months ago ;-)
> >
> > Martijn
> >
> > On 10/17/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > No plans from the core devs. But anyone from the list of wicket-stuff
> > > committers could take it up if they like.
> > >
> > > Eelco
> > >
> > >
> > > On 10/17/06, cowwoc <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > There exists a module called
> wicket-contrib-data-hibernate-3.0. Are
> > > > there plans for releasing wicket-contrib-data-ejb3 in the near future?
> I
> > > > know Cheeser was working on one but I don't know how far along it is.
> > > >
> > > > Thanks,
> > > > Gili
> > > >
> > > >
> > > >
> > > >
> -
> > > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > >
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> -
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > --
> >  href="http://www.thebeststuffintheworld.com/vote_for/wicket
> ">Vote
> > for  href="http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
> > at the http://www.thebeststuffintheworld.com/";>Best Stuff in
> > the World!
> >
> >
> -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
Using Tomcat but need to do more? Need 

Re: [Wicket-user] Components Entirely In Java?

2006-10-19 Thread Gwyn Evans
On 19/10/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
> I wanted to ask, just for curiosity, in case that somebody wants to
> develop components/pages in wicket, BUT place the HTMLs outside the
> package where their corresponding java classes are (avoid the folder
> hierarchy due to java packages, e.g. have the HTML pages in a web/pages
> folder and have wicket know where to get those pages from) ?

There's  
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
and http://cwiki.apache.org/WICKET/custom-resource-paths.html but I
don't know  how much things have moved on since they were written, so
also follow Igor's suggestion & check the archives (e.g.
http://www.nabble.com/Wicket-f13974.html)

/Gwyn
-- 
Download Wicket 1.2.2 now! - http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Role authorization per page

2006-10-19 Thread ChuckDeal


Eelco Hillenius wrote:
> 
>> Attempting to play with the application or Session AuthorizationStrategy
>> doesn't seem to be a good idea because it I would need to somehow inject
>> the
>> current page into the "Authorization Process".
> 
> I think you are trying too hard to fit the existing authorization
> strategies, which in fact are meant as just examples, in your
> situation. To use those, you as you mention have to push the 'meta
> data' before rendering starts. But that's a pretty awkward programming
> model. What you should do is introduce some interface - like
> IMyAuthCheck { boolean hasAccess() } - and develop a custom strategy
> that checks whether a component implements this interface, and when it
> does, perform the check.
> 

Man, you're reading my mind...freaky.

I realized I was forcing a square peg into a round hole and modified my
approach to be more like what you describe.  I was stuck on the Auth
Strategy because I liked the way it worked.  In that the components knew
that they were protected and the framework could just test the components,
no centralized facility to kept track of the security markers.

What I ended up doing (and am in the process of fleshing out, including the
naming) is make a MetaDataComponentProtector (modeled after the
MetaDataRoleAuthorizationStrategy).  The idea is that you would mark a
component as "protected" and it would stick an ActionProtections class in
it's MetaData that contained a Map or Action (Render, Enable) /
commons-collections Predicate pairs.  The Predicate is used to evaluate a
Component (specifically looking for an IProtectionVerifier as an ancestor to
the Component) to see if it has rights.  But because it is a Predicate, any
number of Predicates can be combined together to make for a comprehensive
protection evaluation (I hope).  In my case, I am making the containing Page
implement the IProtectionVerifer (with a hasRights(String role) method).

Now, to bring this all together, I use the Page's onBeforeRender method to
actually force the evaluation to occur.  The MetaDataComponentProtector has
an updateComponent(Component) method that, depending on the Action, calls an
implementation of IComponentProtector (with a updateComponent(Component)
method) that knows how to modify a Component for the given Action.  For
example, EnableProtector would perform the predicate eval and setEnabled(),
whereas the RenderProtector would setVisible.  The point of the separate
IComponentProtectors is that there might end up being multiple Protectors
for a given action.  Why?  so that more specific modifications take place,
for example, AjaxLink when used with input=button doesn't actually make the
button appear disabled, it just blocks the onClick when isEnabled returns
false, so in this case, I would probably add a behavior to add the disabled
attribute.

I went through all that not only for your benefit :), but also because I
have a question.  Currently, when I mark a component as protected, I add the
Component to a List on the Page (protectedComponents) so that onBeforeRender
doesn't have to go to every child Compoennt of the page (which could end up
being a pretty deep, dense tree) looking for protected components.  Is
storing a List of Components bad?  How expensive is it to traverse through
all children looking for a MetaDataKey?

On a related note, how expensive is it to look for a specifc type of Parent
of a Component?

Thanks, I know that was a lot to read, but I LOVE working with Wicket versus
the home-made solution that we currently use, but I need to build this kind
of stuff into the framewrok before I can unleash the rest of my team on it
and your help and insight are invaluable!
-- 
View this message in context: 
http://www.nabble.com/Role-authorization-per-page-tf2453766.html#a6895441
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Nice Url

2006-10-19 Thread Dipu



HI all, 
 
Is there anyway to make the non bookmarkable page 
urls look nicer.
I am using the wicket version 1.2.1
 
I need to display the urls like
   

/x/x/searching/x/searchresults/x/payment/x/confirmation
 
Kind Regards
Dipu
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-19 Thread Korbinian Bachl
Hi,
 
yes it is possible, look here for detailed:
http://www.javalobby.org/java/forums/t68753.html
 
you can then provide parameters via the PageParameter param - if this doesnt
satisfy you (e.g: some special needs for URL) then you may also use a own
implementation of IRequestTargetURLCodingStrategy  - a good beginnning there
is examining the WOOGLE project and look at its URL Strategy
(/q/queryword/page) - 
 
best Regards,
 
Korbinian
 




Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Dipu
Gesendet: Donnerstag, 19. Oktober 2006 14:37
An: wicket-user@lists.sourceforge.net
Betreff: [Wicket-user] Nice Url


HI all, 
 
Is there anyway to make the non bookmarkable page urls look nicer.
I am using the wicket version 1.2.1
 
I need to display the urls like
   
/x
/x/searching
/x/searchresults
/x/payment
/x/confirmation
 
Kind Regards
Dipu



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-19 Thread Dipu



Hi Korbinian, 
 
Thanks very much for the reply, 
 
If i have a page with the following 
constructor 
public NonBookmarkablePage(OrderInfo orfderInfo, 
final PartyInfo partyInfo) 
 
How will i make the url look nice for the page 
?
 
can you please give me some tips on implementing 
the IRequestTargetURLCodingStrategy  and using it.
 
Regards
Dipu
 
 
 
- Original Message - 
From: "Korbinian Bachl" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, October 19, 2006 2:25 
PM
Subject: Re: [Wicket-user] Nice 
Url
> Hi,> > yes it is possible, look here for 
detailed:> http://www.javalobby.org/java/forums/t68753.html> > you can then provide parameters via the 
PageParameter param - if this doesnt> satisfy you (e.g: some special 
needs for URL) then you may also use a own> implementation of 
IRequestTargetURLCodingStrategy  - a good beginnning there> is 
examining the WOOGLE project and look at its URL Strategy> 
(/q/queryword/page) - > > best Regards,> > 
Korbinian> > > > 
> > Von: [EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED] Im Auftrag von 
Dipu> Gesendet: Donnerstag, 19. Oktober 2006 14:37> An: wicket-user@lists.sourceforge.net> Betreff: [Wicket-user] Nice Url> > > HI all, 
> > Is there anyway to make the non bookmarkable page urls look 
nicer.> I am using the wicket version 1.2.1> > I need to 
display the urls like> 
   
> /x> /x/searching> /x/searchresults> 
/x/payment> /x/confirmation> > Kind Regards> 
Dipu> > > > 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] any tips to make template validate?

2006-10-19 Thread Eelco Hillenius
Could you add a feature request if you want this? On
issues.apache.org/jira/browse/WICKET.

Eelco

On 10/14/06, Ingram Chen <[EMAIL PROTECTED]> wrote:
> All,
>
> I occasionally encounter a problem, for example, a template like:
>
> 
> 
>field A
>field B
> 
> field C
> 
>
> groupAB is just funtional group and will always setRenderBodyOnly(true), so
> rendered page will be validated.
> But the problem is the template is not validted... Is it possible to create
> a psuedo tag like:
>
> 
>  
> field A
> field B
> 
>  field C
>  
>
> or something like . such tag dose nothing and always render
> body only.
> By seperateing namespace, it makes template clean and validated.
>
> Currently I use  as tag placeholder. It works like my want
> but I guess wicket:component
> is not for such purpose.
>
> Any idea ?
> --
> Ingram Chen
> Java [EMAIL PROTECTED]
> Institue of BioMedical Sciences Academia Sinica Taiwan
> blog: http://www.javaworld.com.tw/roller/page/ingramchen
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-19 Thread cowwoc

What about bookmarkable pages containing Forms? Is this still in the 
works?

Gili

Korbinian Bachl wrote:
> Hi,
>  
> yes it is possible, look here for detailed:
> http://www.javalobby.org/java/forums/t68753.html
>  
> you can then provide parameters via the PageParameter param - if this doesnt
> satisfy you (e.g: some special needs for URL) then you may also use a own
> implementation of IRequestTargetURLCodingStrategy  - a good beginnning there
> is examining the WOOGLE project and look at its URL Strategy
> (/q/queryword/page) - 
>  
> best Regards,
>  
> Korbinian
>  
> 
> 
> 
> 
>   Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag von Dipu
>   Gesendet: Donnerstag, 19. Oktober 2006 14:37
>   An: wicket-user@lists.sourceforge.net
>   Betreff: [Wicket-user] Nice Url
>   
>   
>   HI all, 
>
>   Is there anyway to make the non bookmarkable page urls look nicer.
>   I am using the wicket version 1.2.1
>
>   I need to display the urls like
>  
>   /x
>   /x/searching
>   /x/searchresults
>   /x/payment
>   /x/confirmation
>
>   Kind Regards
>   Dipu
> 
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user



signature.asc
Description: OpenPGP digital signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Components Entirely In Java?

2006-10-19 Thread Jonathan Sharp
That's what I'm after, the majority of our interface is form driven and laid out using basic block elements with CSS handling all of the positioning. Even then, laying it out with  tags would be better than what we have currently (developers have too much freedom with presentation... font tags are S-O-O '90s) hehe
Thanks,-jsOn 10/18/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
you can encapsulate a great deal of markup and css into the components, however unless you go to extremes some basic knowledge of html is still needed. wicket doesnt use layout managers so you have to provide some basic html - at least  tags to position the components.
in some cases if the components being added are just stacked you can use a repeater like RepeatingView to take care of that so end users can goMyPage() {   getNavContainer().add(new MyNewComponnet1());
   getNavContainer().add(new MyNewComponent2());   getBodyContainer().add(new MyNewCompoenent3());}etc-IgorOn 10/18/06, 
Jonathan Sharp
 <[EMAIL PROTECTED]> wrote:
I'm a UI developer on a team of about 10 and are in the evaulation process of wicket. Pardon my ignorance if this is obvious or misses the boat...
How complex would it be to provide a jar of components to our developers that they can use to build their interfaces without having to touch HTML? The goal would be that they would build the application without having to write any HTML but simply "append" components to each other similar to how you can with the DOM browser side. Our AppBasePage would then have a  tag which is where it would render these components. Does this make sense?
Example Components:- Form- FieldSet- FieldPair- SaveButtonDevelopers would then:class MyPage extends AppBaseBase {    public MyPage() {    Form f = new Form("myForm");
    f.add(new SaveButton("id", "Label"));    add(f);    }}Cheers,-js

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-19 Thread Eelco Hillenius
Works in 2.0 with StatelessForms.

Eelco


On 10/19/06, cowwoc <[EMAIL PROTECTED]> wrote:
>
> What about bookmarkable pages containing Forms? Is this still in the 
> works?
>
> Gili
>
> Korbinian Bachl wrote:
> > Hi,
> >
> > yes it is possible, look here for detailed:
> > http://www.javalobby.org/java/forums/t68753.html
> >
> > you can then provide parameters via the PageParameter param - if this doesnt
> > satisfy you (e.g: some special needs for URL) then you may also use a own
> > implementation of IRequestTargetURLCodingStrategy  - a good beginnning there
> > is examining the WOOGLE project and look at its URL Strategy
> > (/q/queryword/page) -
> >
> > best Regards,
> >
> > Korbinian
> >
> >
> >
> > 
> >
> >   Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Im Auftrag von Dipu
> >   Gesendet: Donnerstag, 19. Oktober 2006 14:37
> >   An: wicket-user@lists.sourceforge.net
> >   Betreff: [Wicket-user] Nice Url
> >
> >
> >   HI all,
> >
> >   Is there anyway to make the non bookmarkable page urls look nicer.
> >   I am using the wicket version 1.2.1
> >
> >   I need to display the urls like
> >
> >   /x
> >   /x/searching
> >   /x/searchresults
> >   /x/payment
> >   /x/confirmation
> >
> >   Kind Regards
> >   Dipu
> >
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Components Entirely In Java?

2006-10-19 Thread Frank Silbermann



To get a set of components that the page developer 
could use without having to write any HTML, the 
application architect could decide on a set of building blocks needed by page 
developers, and implement them with the associated HTML files.  
These could include basic form components, 
and components for arranging subpanels -- e.g. vertical stacking, horizontal 
placement, whatever.  Then the user could build pages by instantiating and 
subclassing these pre-build components without adding any new 
HTML.  


  (To insert a subpanel in specified locations 
  of the panel-arranger, the user would create an anonymous subclass of the 
  panel-arranger which overrode the methods for creating the individual panels 
  that get arranged.  This is so that the panel-arranger can pass the 
  needed wicket-id to the over-ridden method that creates that panel, without 
  the user having to know the specific wicket-ids coded in the panel-arranger's 
  HTML page.)
 
The difficulty is in deciding on the set of building blocks 
needed.  It's sort of like designing an application-oriented programming 
language.  I built my application this way, but I was the sole developer -- 
so I was continually refining and adding to my set of general-pupose and 
application-oriented building blocks as I went along.  To build truly 
flexible with general-purpose building blocks that do not limit the developer's 
styling of the application would be a huge project.  It would be something 
like implementing the Echo (http://www.nextapp.com/platform/echo1/echo/) 
or Echo2 (http://www.nextapp.com/platform/echo2/echo/) 
framework in Wicket.
 
In fact, if you really don't want the page-developers to be 
coding any HTML, the Echo or Echo 2 framework may be what you're looking 
for.  But then you'll be limited to building upon whatever functionality 
their components provide.


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Igor 
VaynbergSent: Wednesday, October 18, 2006 11:27 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
Components Entirely In Java?
you can encapsulate a great deal of markup and css into the 
components, however unless you go to extremes some basic knowledge of html is 
still needed. wicket doesnt use layout managers so you have to provide some 
basic html - at least  tags to position the components. in 
some cases if the components being added are just stacked you can use a repeater 
like RepeatingView to take care of that so end users can goMyPage() 
{   getNavContainer().add(new MyNewComponnet1());    
getNavContainer().add(new MyNewComponent2());   
getBodyContainer().add(new 
MyNewCompoenent3());}etc-Igor
On 10/18/06, Jonathan 
Sharp <[EMAIL PROTECTED]> 
wrote:
I'm 
  a UI developer on a team of about 10 and are in the evaulation process of 
  wicket. Pardon my ignorance if this is obvious or misses the boat... 
  How complex would it be to provide a jar of components to our 
  developers that they can use to build their interfaces without having to touch 
  HTML? The goal would be that they would build the application without having 
  to write any HTML but simply "append" components to each other similar to how 
  you can with the DOM browser side. Our AppBasePage would then have a 
   tag which is where it would render these components. 
  Does this make sense? Example Components:- Form- FieldSet- 
  FieldPair- SaveButtonDevelopers would then:class 
  MyPage extends AppBaseBase {    public MyPage() 
  {    Form f = new Form("myForm"); 
      f.add(new SaveButton("id", 
  "Label"));    
  add(f);    }}Cheers,-js-Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job easier 
  Download IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user 
  mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 
  
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Matthew P. Tilchen
Thanks for the help Frank. The changes you mentioned solved my  
problem. I was operating under the fallacious assumption that the  
Page object was attached to the  tag.

Now, regarding the following:

"getBodyContainer().getBodyContainer() returns the WebMarkupContainer
which corresponds with the  tag. (Though I don't know how good
the support is for having javascript events on the  tag in the
different browsers)"

I noticed that the Wicket Developers have a "TODO" item for changing  
the name of "BodyContainer" to something else as it is really just a  
facade used for getting what the user of the API would want, a  
reference to the WebMarkupContainer, which is exactly what I am doing  
here. Maybe they could even go so far as to add a  
"getWebMarkupContainer()" to the WebPage class. I think this would be  
less verbose and communicate the intent of the code more clearly.

Finally, I was wondering if there is any way to actually look at what  
key was pressed that triggered the JS "onkeypressed" event from the  
perspective of the API. I hunted through the AjaxRequestTarget class  
and I could not find a way to get this particular information or  
anything else regarding the event. Does Wicket expose this somehow?

Thanks again for your advice.

-MT


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-19 Thread Gwyn Evans
On 19/10/06, Dipu <[EMAIL PROTECTED]> wrote:

> If i have a page with the following constructor
> public NonBookmarkablePage(OrderInfo orfderInfo, final PartyInfo partyInfo)
>
> How will i make the url look nice for the page ?

How difficult would it be to make it bookmarkable, i.e. give it a
PageParameters constructor and use the Application.mount call on it?

> can you please give me some tips on implementing the
> IRequestTargetURLCodingStrategy  and using it.

Take a look at the sources, read the javadocs & see how the supplied
strategies are implementing it.

/Gwyn

> - Original Message -
> From: "Korbinian Bachl" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, October 19, 2006 2:25 PM
> Subject: Re: [Wicket-user] Nice Url
>
> > Hi,
> >
> > yes it is possible, look here for detailed:
> > http://www.javalobby.org/java/forums/t68753.html
> >
> > you can then provide parameters via the PageParameter param - if this
> doesnt
> > satisfy you (e.g: some special needs for URL) then you may also use a own
> > implementation of IRequestTargetURLCodingStrategy  - a
> good beginnning there
> > is examining the WOOGLE project and look at its URL Strategy
> > (/q/queryword/page) -
> >
> > best Regards,
> >
> > Korbinian
> >
> >
> >
> > 
> >
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Im
> Auftrag von Dipu
> > Gesendet: Donnerstag, 19. Oktober 2006 14:37
> > An: wicket-user@lists.sourceforge.net
> > Betreff: [Wicket-user] Nice Url
> >
> >
> > HI all,
> >
> > Is there anyway to make the non bookmarkable page urls look nicer.
> > I am using the wicket version 1.2.1
> >
> > I need to display the urls like
> >
> > /x
> > /x/searching
> > /x/searchresults
> > /x/payment
> > /x/confirmation
> >
> > Kind Regards
> > Dipu
> >
> >
> >
> >
> -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
Download Wicket 1.2.2 now! - http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Components Entirely In Java?

2006-10-19 Thread Eelco Hillenius
> In fact, if you really don't want the page-developers to be coding any HTML,
> the Echo or Echo 2 framework may be what you're looking for.  But then
> you'll be limited to building upon whatever functionality their components
> provide.

Yep, that could be a good alternative if you want to do all in Java
and don't want to touch any HTML, but use layout managers for HTML.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] any tips to make template validate?

2006-10-19 Thread Ingram Chen
done :-)http://issues.apache.org/jira/browse/WICKET-11btw, JIRA is a much better issue tracking tools, good move! 
On 10/19/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Could you add a feature request if you want this? Onissues.apache.org/jira/browse/WICKET.EelcoOn 10/14/06, Ingram Chen <
[EMAIL PROTECTED]> wrote:> All,>> I occasionally encounter a problem, for example, a template like:>> > >field A
>field B> > field C> >> groupAB is just funtional group and will always setRenderBodyOnly(true), so
> rendered page will be validated.> But the problem is the template is not validted... Is it possible to create> a psuedo tag like:>> >  
> field A> field B> >  field C>  >> or something like . such tag dose nothing and always render
> body only.> By seperateing namespace, it makes template clean and validated.>> Currently I use  as tag placeholder. It works like my want> but I guess wicket:component
> is not for such purpose.>> Any idea ?> --> Ingram Chen> Java [EMAIL PROTECTED]> Institue of BioMedical Sciences Academia Sinica Taiwan> blog: 
http://www.javaworld.com.tw/roller/page/ingramchen> -> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job> easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Components Entirely In Java?

2006-10-19 Thread Erik van Oosten
Jonathan,

In my current application I have about 10 similar looking search forms 
that are all generated with a list that specifies the layout to be used, 
and the property to be set in a model object. There is only 1 html file 
containing only 3 fragments to drive all the search forms. For each 
fragment there is a corresponding form specification item. To be more 
specific, these are three form specification item types:1: simple form 
item: label and text input,  2: checkbox input and label, 3: label and 2 
text input for from-untill values. In the actual form the fragments are 
added with a repeater element. With the use of a CompoundPropertyModel 
on the form and PropertyModels on the input elements there is no 
dependency to specific form model object types.

The setup also allows for additional validators and behaviors like 
autocompletion. The trick here is to let the form specification item 
contain (or create for Wicket 2) the FormComponent. That form component 
is later added to the right fragment. The labels and access keys are 
retrieved from a resource file.

Have fun,
 Erik.


Jonathan Sharp schreef:
> That's what I'm after, the majority of our interface is form driven 
> and laid out using basic block elements with CSS handling all of the 
> positioning. Even then, laying it out with  tags would be better 
> than what we have currently (developers have too much freedom with 
> presentation... font tags are S-O-O '90s) hehe
>
> Thanks,
> -js

-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Frank Bille
Wicket doesn't have something like that but you can do it yourself. Take a look at this to get an idea:http://www.nabble.com/CTRL%2Bclick-tf2047972.html#a5640400
FrankOn 10/19/06, Matthew P. Tilchen <[EMAIL PROTECTED]> wrote:
Thanks for the help Frank. The changes you mentioned solved myproblem. I was operating under the fallacious assumption that thePage object was attached to the  tag.Now, regarding the following:
"getBodyContainer().getBodyContainer() returns the WebMarkupContainerwhich corresponds with the  tag. (Though I don't know how goodthe support is for having _javascript_ events on the  tag in the
different browsers)"I noticed that the Wicket Developers have a "TODO" item for changingthe name of "BodyContainer" to something else as it is really just afacade used for getting what the user of the API would want, a
reference to the WebMarkupContainer, which is exactly what I am doinghere. Maybe they could even go so far as to add a"getWebMarkupContainer()" to the WebPage class. I think this would beless verbose and communicate the intent of the code more clearly.
Finally, I was wondering if there is any way to actually look at whatkey was pressed that triggered the JS "onkeypressed" event from theperspective of the API. I hunted through the AjaxRequestTarget class
and I could not find a way to get this particular information oranything else regarding the event. Does Wicket expose this somehow?Thanks again for your advice.-MT-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to create this component

2006-10-19 Thread blackboy zabaha
Hi,

I need a custom component that is a box of content
with a title bar, 
when I click or double click on title bar, it will
collapse/expand its 
content, I don't know the good name for it, so I just
call it a 
'folder', also it could remember its collapse/expand
state when form 
submitted.

Ex.

   

function collapseOrExpand() {
   var elm = document.getElementById('folder');
   var disp = elm.style.display;
   elm.style.display = (disp == 'none' )? 'block'
: 'none';
}



   
  xxx
  
 
 xxx
  



/**
 * Java code : Give it a title and the custom
panel as its content..
 */
form.add(new Folder(folderTitle, aPanel));
   

   Please give me some example how to start to do
this..


Thanks,
Black zabaha

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] need to deploy into repo

2006-10-19 Thread Geoff hendrey
OK, so I give up trying to get ibiblio to upload my bundle to the repo. I don't 
why they won't do it, maybe it just takes months or something, or ,maybe 
something is broken and they just don't have time to explain to me the error of 
my ways.

Can Wicket host the shades bundle in their repo?
you can get the bundle here:

 http://easynews.dl.sourceforge.net/sourceforge/shadesdb/shades-0.0.5-bundle.jar

thanks,
geoff



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to create this component

2006-10-19 Thread Igor Vaynberg
do you want this to work via ajax or just _javascript_?-IgorOn 10/19/06, blackboy zabaha <[EMAIL PROTECTED]
> wrote:Hi,I need a custom component that is a box of contentwith a title bar,
when I click or double click on title bar, it willcollapse/expand itscontent, I don't know the good name for it, so I justcall it a'folder', also it could remember its collapse/expandstate when form
submitted.Ex.   
function collapseOrExpand() {
   var elm = document.getElementById('folder');
   var disp = elm.style.display;
   elm.style.display = (disp == 'none' )? 'block'
: 'none';
}
     wicket:id="folderTitle">xxx   xxx   /** * Java code : Give it a title and the custompanel as its content.. */form.add(new Folder(folderTitle, aPanel));    Please give me some example how to start to dothis..Thanks,Black zabaha__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user

[Wicket-user] Webby uses Wicket ... link would be nice.

2006-10-19 Thread Chris M
Just released 0.4 of webby, webby4db and examples, see 
http://r8fe.net/webby and the blog entry at http://r8fe.net/wordpress.

Webby aims at supporting quick creation of data centric web 
applications, built upon Wicket, using a bean descriptor like approach.

My question: Could someone of the wicket-committers add a link to it 
from the "external links" section of the Wiki Index?

Cheers,
Chris

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Am I in a ModalWindow

2006-10-19 Thread Stefan Lindner
How can a component decide wheter it is displayed within a Modalwindow?
If I have A page that can displayed "normally" or inside of a
ModalWindow, how can the page class retrieve information whether it is
displayed inside of a ModalWindow to do special handlig?

Stefan Lindner

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Webby uses Wicket ... link would be nice.

2006-10-19 Thread Igor Vaynberg
done-IgorOn 10/19/06, Chris M <[EMAIL PROTECTED]> wrote:
Just released 0.4 of webby, webby4db and examples, seehttp://r8fe.net/webby and the blog entry at http://r8fe.net/wordpress.Webby aims at supporting quick creation of data centric web
applications, built upon Wicket, using a bean descriptor like approach.My question: Could someone of the wicket-committers add a link to itfrom the "external links" section of the Wiki Index?
Cheers,Chris-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Am I in a ModalWindow

2006-10-19 Thread Matej Knopp
If you want page to be displayed in modal window, you must create 
ModalWindow.PageCreator instance. The instance can set a flag on page to 
indicate that it's shown in modal dialog.

-Matej

Stefan Lindner wrote:
> How can a component decide wheter it is displayed within a Modalwindow?
> If I have A page that can displayed "normally" or inside of a
> ModalWindow, how can the page class retrieve information whether it is
> displayed inside of a ModalWindow to do special handlig?
> 
> Stefan Lindner
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] suggestion

2006-10-19 Thread Sibil Ferguson





Inspired from gladiators fighting to the death in the Colosseum in
Rome.
- Might it be like seeing a Henri Matisse exhibition at Louisiana Museum
of Modern Art? And the wish to climb it - soon!
Inspired by the highest mountain in the world, Mont Everest in Nepal.
Allow one month of delivery or as agreed.
I will be the Artist in Residence for the Appalachian Mountain Club in
New Hampshire next week. And the wish to climb it - soon!
The displayed images are drafts.
All the best from your New York Fan Club! Hopefully THE HUGE SCANDAL
will not damage the Festival Plays. Frank Lloyd Wright had a rare gift,
sure.
Stephen Downes, Toronto has authorized me a non-exclusive license to use
the background photo or any other of his photos for any purpose. Frank
Lloyd Wright had a rare gift, sure.
Allow one month of delivery or as agreed.
The scandal has been front page news for several days recently.
Two pictures to be seen as a hole.
By Asbjorn Lonvig, artist. Inspired by the highest mountain in the
world, Mont Everest in Nepal.
se in Uppsala, Sweden has a wonderful design and an exceptional support.
In Chicago I saw several of his houses that looked as if they were built
yesterday. The area is very mountainous and the colors in the mist look
just like your artwork! Curator Kipton Cronkite from KiptonART in New
York launches an epoch-making review procedure. Allow one month of
delivery or as agreed.
com in Toronto, Canada.
Stephen Downes, Toronto has authorized me a non-exclusive license to use
the background photo or any other of his photos for any purpose.
dk - if you want to see about writings, lecturing etc.
The price you bid is on ONE of them. A few hours after an artist have
sent an art work, KiptonART informs the artist if the artwork is
accepted or rejected.
Inspired by the highest mountain in the world, Mont Everest in Nepal.
Inspired from the banners in the gay neighborhood, from the gay pride
parades and festivals, from San Francisco being a home to gays - a home
without prejudges - or?
- Might it be like seeing a Henri Matisse exhibition at Louisiana Museum
of Modern Art? By Asbjorn Lonvig, artist.
Inspired from the banners in the gay neighborhood, from the gay pride
parades and festivals, from San Francisco being a home to gays - a home
without prejudges - or?
org you find the link to the TABLOID version, which is for FREE download
and print.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Matthew P. Tilchen
Thanks again Frank. That was extremely helpful. For the record, all  
the browsers I tested do fire the event off the body object (Mozilla- 
based, Safari, IE). Unfortunately the mozilla-based browsers do not  
include the keyCode attribute on the event, it always comes through  
as 0 for any key. The other browsers do include the correct unicode  
value.

-MT

On Oct 19, 2006, at 2:33 PM, Frank Bille wrote:

> Wicket doesn't have something like that but you can do it yourself.  
> Take a look at this to get an idea:
>
> http://www.nabble.com/CTRL%2Bclick-tf2047972.html#a5640400
>
> Frank
>
>
> On 10/19/06, Matthew P. Tilchen <[EMAIL PROTECTED]> wrote: Thanks  
> for the help Frank. The changes you mentioned solved my
> problem. I was operating under the fallacious assumption that the
> Page object was attached to the  tag.
>
> Now, regarding the following:
>
> "getBodyContainer().getBodyContainer() returns the WebMarkupContainer
> which corresponds with the  tag. (Though I don't know how good
> the support is for having javascript events on the  tag in the
> different browsers)"
>
> I noticed that the Wicket Developers have a "TODO" item for changing
> the name of "BodyContainer" to something else as it is really just a
> facade used for getting what the user of the API would want, a
> reference to the WebMarkupContainer, which is exactly what I am doing
> here. Maybe they could even go so far as to add a
> "getWebMarkupContainer()" to the WebPage class. I think this would be
> less verbose and communicate the intent of the code more clearly.
>
> Finally, I was wondering if there is any way to actually look at what
> key was pressed that triggered the JS "onkeypressed" event from the
> perspective of the API. I hunted through the AjaxRequestTarget class
> and I could not find a way to get this particular information or
> anything else regarding the event. Does Wicket expose this somehow?
>
> Thanks again for your advice.
>
> -MT
>
>
> -- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
> -- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642__ 
> _
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to create this component

2006-10-19 Thread blackboy zabaha
Hi,
I think do via ajax would be nice.
Indeed, I dont have much problem with how to do it,
but my problem is how to create a custom component
that need a panel as 
parameter..
how to associate folder's markup (that should be
fixed? for reuse) with 
the panel's id? Do I have to fix the panel's id to fit
with my folder's 
markup? any better way?
Thanks,
Black zabaha


Igor Vaynberg wrote:
> do you want this to work via ajax or just
javascript?
>
> -Igor
>
>
> On 10/19/06, *blackboy zabaha*
<[EMAIL PROTECTED] 
> > wrote:
>
> Hi,
>
> I need a custom component that is a box of
content
> with a title bar,
> when I click or double click on title bar, it
will
> collapse/expand its
> content, I don't know the good name for it, so I
just
> call it a
> 'folder', also it could remember its
collapse/expand
> state when form
> submitted.
>
> Ex.
>
>
> 
> function collapseOrExpand() {
>var elm =
document.getElementById('folder');
>var disp = elm.style.display;
>elm.style.display = (disp == 'none' )?
'block'
> : 'none';
> }
> 
>
> 
>
>wicket:id="folderTitle">xxx
>   
>  
>  xxx
>   
> 
> 
>
> /**
>  * Java code : Give it a title and the
custom
> panel as its content..
>  */
> form.add(new Folder(folderTitle, aPanel));
>
>
>Please give me some example how to start
to do
> this..
>
>
> Thanks,
> Black zabaha
>
>
__
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
>
>
-
> Using Tomcat but need to do more? Need to
support web services,
> security?
> Get stuff done quickly with pre-integrated
technology to make your
> job easier
> Download IBM WebSphere Application Server
v.1.0.1 based on Apache
> Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>

> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

>
>
-
> Using Tomcat but need to do more? Need to support
web services, security?
> Get stuff done quickly with pre-integrated
technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>

>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
>   


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Current wicket news and mailing lists

2006-10-19 Thread jan_bar
Hi,

news://gmane.com.java.wicket.devel seems to be dead now,
news://gmane.com.java.wicket.user still works. What are the current
available news feeds for development questions?
I did not found anything on http://incubator.apache.org/projects/wicket.
Also the project info web site http://incubator.apache.org/wicket/ doesn't
work

Thanks, Jan




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using AjaxEventBehavior On A Page Component

2006-10-19 Thread Frank Bille
On 10/20/06, Matthew P. Tilchen <[EMAIL PROTECTED]> wrote:
Unfortunately the mozilla-based browsers do notinclude the keyCode attribute on the event, it always comes throughas 0 for any key. The other browsers do include the correct unicodevalue.
Hmm, do you mean in terms of onkey* on  tag? I'll try to look at it to see if there is some work around.Frank
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Current wicket news and mailing lists

2006-10-19 Thread Frank Bille
http://mail-archives.apache.org/mod_mbox/incubator-wicket-dev/On 10/20/06, jan_bar
 <[EMAIL PROTECTED]> wrote:Hi,
news://gmane.com.java.wicket.devel seems to be dead now,news://gmane.com.java.wicket.user still works. What are the currentavailable news feeds for development questions?I did not found anything on 
http://incubator.apache.org/projects/wicket.Also the project info web site http://incubator.apache.org/wicket/ doesn'tworkThanks, Jan
-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Fwd: Wicket CMS

2006-10-19 Thread Ted Roeloffzen
-- Forwarded message --From: Joe Toth <[EMAIL PROTECTED]>Date: 19-okt-2006 17:16Subject: Re: Wicket CMS
To: Ted Roeloffzen <[EMAIL PROTECTED]>Here are a few suggestions to start out with.  You can repost on the list if you want.I would say you should break this project up into 2 parts, like how I did for wicket-cms.
wicket-cms and wicket-cms-example
This will create a very modular design so others can reuse wicket-cms in their own applications.  You will be designing your core system as though you are a user of the system too, so you will be forced to make it as extensible/modular/componentized as possible.  If everything is tightly coupled then you limit the reusability of the components.  Plus its also nice to see how to integrate a product with an existing system.
Here are a few starting points:1. Make sure the authorization class is an interface that can be implemented by others to integrate in their own system's authorization backend. 2. Keep as many components Panel-centric as possible.  
For instance if you have a component that displays a list of files/content managable by a user I think the abstraction should be something like...AbstractContentBrowserPanel - This would display a DataTable with hooks like  abstract public onContentNameClick(Content content);
ContentBrowserPanel - This would be a default implementation of the AbstractContentBrowserPanel that implemented onContentNameClick(Content content) to something like setResponsePage(new ViewContent(content))

As you can see, now if a user wants to have a page that displays a list of content, but instead of taking them to the ViewContent page when they click on a name, they can implement AbstractContentBrowserPanel.onContentNameClick

(Content content) with something like setPage(new ContentEditor(content))3. Use as much CSS as possible for layout and design.  Others can then override your classes with their own style sheet(s) to keep the layout/design consistent with their own.
The core system probably doesn't even need a custom database schema, I could be wrong, depending on the features required.  But, since you are using JackRabbit to store content that eliminates the needed for a lot of custom data structures.  wicket-cms-example would need a database of course.  Let me give you an example how I would authorize a user to edit a piece of content:
// This would be part of wicket-cmspublic interface CMSSecurity {    boolean hasPermission(Permission permission);}// This would be part of wicket-cms-examplepublic class MyCustomCMSSecurityImpl {
    boolean hasPermission(Permission permission) {   boolean hasPermission = false;    // lookup user in database    User user = session().load(User.class, CustomSession.get().getUsername());

    if (user.getRoles().contains(permission.getAction() + "-role") { hasPermission = true;    }  return hasPermission;    }}public class ContentEditorPanel {
   ContentEditorPanel(final Content content) {    Permission permission = new Permission() {    public String getAction() {  return "edit";    }
    public Content getContent() {  return content;    }    };  // get CMSSecurity implementation from somewhere, like the application    if (!CMSApplication.getCMSSecurity().hasPermission(permission)) {
    throw new AccessDeniedException();    }   }}Note: General programming suggestion for reusability.  Encapsulate finer grained objects in a wrapper object, like how Permission is above.  This is better than passing everything in a granular fashion, like breaking it up into Content content, String role, etc.  
Because now if you want to add another piece of the system to authorize against you can just add it to the Permission object without breaking the API.  If you break the API, everyone that uses it will have to recode their stuff that users it.
I hope all this makes sense, its hard to explain quickly.  Let me know if you have any questions.Thanks for keeping me posted.
On 10/19/06, 
Ted Roeloffzen <[EMAIL PROTECTED]> wrote:

He Joe,Here is the first, very basic design, for the blog.It's all very basic. i.e. There is a single class defined for the access control.This has to be specified more, but that is something for later.


greets,Ted2006/10/17, Joe Toth <[EMAIL PROTECTED]>:


Hey Ted,It's IRC nick: WeaZeLb0y.How's the wicket based cms going? Will you put out some specs for the design before you implement it? For instance:1. What parts will be pluggable? - ie. authorization/permissions/auditing
2. What technologies will be used? - of course wicket, but will you use JCR, JPA/Hibernate, Spring, EJBs, TinyMCE3. What features will the first iteration include?Also, I would recommend separating the data/services from the UI. Meaning, if someone wants to create a complete different UI and use a different framework they should be able to, for example: