Can someone tell me of a good reference for this?
The wiki and ... even google search results seem a bit light on.
Does someone have a handy link?
--
View this message in context:
http://www.nabble.com/Good-reference-for-clustering-and-page-session-store-options--tp16045170p16045170.html
Sent
as of 1.3.1 the clustering piggy backs on whatever clustering you use
to cluster httpsession, so i guess there isnt much to tell...
-igor
On Thu, Mar 13, 2008 at 11:29 PM, Ned Collyer [EMAIL PROTECTED] wrote:
Can someone tell me of a good reference for this?
The wiki and ... even google
Apache Wicket 1.3.2 is released!
The Apache Wicket team is proud to announce the availability of the
second maintenance release: Apache Wicket 1.3.2. A lot of bugs have
been squashed and several improvements implemented.
Eager people click here to download the distribution, others can read
you should use item.setRenderBodyOnly(true) if you want to remove
span wicket:id=entry and label.setrenderBodyOnly(true) to remove
the span wicket:id=label
By what you are describing you want item.add(new
Label(label).setRenderBodyOnly(true));
Maurice
On Fri, Mar 14, 2008 at 5:57 AM,
I think the default settings should be fine (in 1.3.1).
-Matej
On Fri, Mar 14, 2008 at 7:29 AM, Ned Collyer [EMAIL PROTECTED] wrote:
Can someone tell me of a good reference for this?
The wiki and ... even google search results seem a bit light on.
Does someone have a handy link?
--
Hi,
I create a treetable, for one of the columns I would like to show the HTML
tags, such as , so I try to disable the HTML escape using
treeTable.setEscapeModelStrings(false); But it does not work at all, it
stick to escape the and .
I use wicket 1.3.1, and I have tested with another
override this method:
/**
* [EMAIL PROTECTED]
org.apache.wicket.model.IComponentAssignedModel#wrapOnAssignment(
org.apache.wicket.Component)
*/
*public* IWrapModel wrapOnAssignment(*final* Component component)
{
*return* *new* AssignmentWrapper(component, propertyName);
}
On Thu, Mar
Hi,
I noticed that WicketTester behaves differently regarding the RequestCycle
based on how you start a Page in your tests.
I have my own custom WebRequestCycle which I return in
MyWebApplication.onNewRequestCycle().
For instance:
If I do:
Page myPage = wicketTester.startPage(MyPage.class);
Does http://cwiki.apache.org/WICKET/websphere.html apply?
/Gwyn
On 12/03/2008, Justine Yan [EMAIL PROTECTED] wrote:
Hi,
I am getting Error 404 when running the helloworld example. I read it
somewhere that I should use WicketServlet instead of WicketFilter.
Anyone has experiences deploy to
Many thanks Johan,
I am just going to explain why I need it. Lets say we have a
component which accepts one or some models as a parameter(s). So it
can apply initial values to its internal component hierarchy. But in
case of use the CompoundPropertyModel we have no chance to do such
DropDownChoice has a lot of contructors. One of them,
DropDownChoice(String id, IModel model, IModel choices, ...)
The first model, could be named selectedModel. And represents the selected
object, with a wicket model.
there is no specific designed solution for that no.
you could also override component.initModel() for that
On Fri, Mar 14, 2008 at 11:34 AM, Vitaly Tsaplin [EMAIL PROTECTED]
wrote:
Many thanks Johan,
I am just going to explain why I need it. Lets say we have a
component which accepts one
http://google.com/search?q=wicket+conditional+markup
On 3/14/08, Martijn Dashorst [EMAIL PROTECTED] wrote:
add(new Component(id) {
@override public boolean isVisible() { return someCondition; }
});
On 3/14/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:
I have a question
Funny, I answered the same question to my colleague this morning.
Below the code I gave him.
What happens is that the model is wrapped in another model. The wrapping
model has a defaultModel that is used to return a value when the
underlying model returns null.
Below the model wrapper you find
Hi experts,
Does anyone know how to create a label link in wicket? In other
words I need a clickable label or a link which acts as a label taking
its text from a model exactly like a wicket's label.
Vitaly
-
To
Thanks James,
I wrote a subclass of a wicket link to archive this, but simple
adding a label as a child to a link seams to be a really good idea :)
Vitaly
On Fri, Mar 14, 2008 at 3:17 PM, James Carman
[EMAIL PROTECTED] wrote:
Have you tried adding a label to your link? I do this with
Yeah, the output would be something like:
a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a
off the top of my head. You might want to tell the label to just
render its body, also.
On 3/14/08, Vitaly Tsaplin [EMAIL PROTECTED] wrote:
Thanks James,
I wrote a subclass of a wicket
Have you tried adding a label to your link? I do this with images. I
don't see why you wouldn't be able to do it with labels.
On 3/14/08, Vitaly Tsaplin [EMAIL PROTECTED] wrote:
Hi experts,
Does anyone know how to create a label link in wicket? In other
words I need a clickable label
Can you add this to the wiki
(http://cwiki.apache.org/WICKET/dropdownchoice-examples.html)? It seems like a
commonly asked question :o)
-Original Message-
From: Erik van Oosten [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2008 9:35 AM
To: users@wicket.apache.org
Subject: Re: How to
I've got a collection of beans (roles) containing user authorization
roles that I'm using as the Model for a ListView. I'm confused by the
interaction between CheckGroups, Check's and CheckBox's. If I use
CheckBox my roles show up selected if the user has the role, but I can't
get the Model
On 3/14/08, Thomas Kappler [EMAIL PROTECTED] wrote:
On Fri, Mar 14, 2008 at 3:26 PM, James Carman
[EMAIL PROTECTED] wrote:
Yeah, the output would be something like:
a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a
off the top of my head. You might want to tell the
On Fri, Mar 14, 2008 at 3:26 PM, James Carman
[EMAIL PROTECTED] wrote:
Yeah, the output would be something like:
a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a
off the top of my head. You might want to tell the label to just
render its body, also.
What do you mean with the
I have a simple portlet created using wicket. It contains a PageableListView
and PagingNavigator components. The portlet initially renders just fine.
When I click on one of the paging links, I get ClassCastException. Part of
the stacktrace looks like this...
java.lang.ClassCastException:
you should call escapemodelstrings on the component that the column
generates, not the treetable itself
-igor
On Fri, Mar 14, 2008 at 2:36 AM, wenm [EMAIL PROTECTED] wrote:
Hi,
I create a treetable, for one of the columns I would like to show the HTML
tags, such as , so I try to disable
class textlink extends link {
//constructor from link that takes a model
protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag,
getModelObjectAsString());
}
}
obviously
checkgroup's model is the selection mode, so it should be bound to
user's assigned roles list, not the list of all available roles.
-igor
On Fri, Mar 14, 2008 at 7:45 AM, Greg Dunn [EMAIL PROTECTED] wrote:
I've got a collection of beans (roles) containing user authorization
roles that I'm
There are actually many ways to what you want:
1) use fragments. to be used during the construction of the containing
component
2) utilize isVisible()
add( new Label( myLabel ) {
public boolean isVisible() {
return (if equal to my condition);
}
} );
This
Anybody has an idea how the modal window can be made to work when
JavaScript
is disabled?
On 11.03.2008, at 17:18, Kaspar Fischer wrote:
I am using http://www.wicket-library.com/wicket-examples/ajax/modal-window
to
show a modal dialog holding a component. -- First of all, thanks to
the
I can't answer your question about why, but I can suggest using a
DateTextField from wicket-datetime for more control over the
formatting. Unfortunately, it requires adding two jars (wicket-
datetime and jodatime).
Alex
On Mar 13, 2008, at 2:08 PM, Markus Strickler wrote:
Hi-
is there
I'm having difficulty adding database functionality to my Wicket
QuickStart app by configuring a JNDI data source in Jetty.
I've added jetty-naming, jetty-plus, mysql-connector-java, and
commons-dbcp to the POM.
I have this in WEB-INF/web.xml:
resource-ref
descriptionMy DataSource
wouldnt this be more appropriate for the jetty mailing lists...there
is a likelyhood more people on those lists will be able to help you
-igor
On Fri, Mar 14, 2008 at 9:45 AM, Kevin Murphy [EMAIL PROTECTED] wrote:
I'm having difficulty adding database functionality to my Wicket
QuickStart
Hi all,
I'm currently having some trouble with a DateTextField. The
DateTextField has a DatePicker component attached to it.
Once the user changes the date with the DatePicker, the attached
DateTextField is assigned the new date and should trigger the onChange
event. Which it doesn't do
I added the following code and it correctly refreshed the node:
DefaultTreeModel model = (DefaultTreeModel)tree.getModelObject();
int[] changes = new int[]{model.getIndexOfChild(parentNode, newNode)};
model.nodesWereInserted((TreeNode)parentNode, changes);
The time difference seemed close to
it can't. ModalWindow is a javascript component. JavaScript is
necessary for displaying, hiding, positioning, closing, etc. the div
that is the modal window.
The only javascript less option aiui is using popup-settings on a regular link.
Martijn
On 3/14/08, Kaspar Fischer [EMAIL PROTECTED]
i dont think values changed via js send out onchange events. you will
probably need to hook into the datepicker javascript and invoke
onchange explicitly. fortunately yui stuff has a pretty good event
system that widgets use, so plugging into it should probably not pose
a huge problem.
-igor
On
Yeah, I figured that out last night. That's actually a great way of
handling the component's state. Thanks for your input.
-Original Message-
From: Nick Heudecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 5:57 PM
To: users@wicket.apache.org
Subject: Re: How to pre-select a
You might check out the source for the LabelIconPanel class in
org.apache.wicket.markup.html.tree. It sets the icon for the LinkTree via
ResourceReferences that point to image files. You might also take a look at
the LinkIconPanel (it extends LabelIconPanel) in the same tree.
Mathias P.W
So basically I could subclass DatePicker and override
getAdditionalJavascript to inject some Js that triggers the onchange
event in DateTextField when some useful event in DatePicker fires.
I also found the appendToInit method below, but that method is never
called in DatePicker. Would that
On Fri, Mar 14, 2008 at 11:00 AM, Stephan Koch
[EMAIL PROTECTED] wrote:
So basically I could subclass DatePicker and override
getAdditionalJavascript to inject some Js that triggers the onchange
event in DateTextField when some useful event in DatePicker fires.
thats the idea.
I also
Hi everyone,
The TestHomePage test class that is created by the wicket quickstart
archetype is throwing a ClassCastException when AuthenticatedWebSession is
extended:
Caused by: java.lang.ClassCastException:
org.apache.wicket.protocol.http.WebSession
at
public void setUp()
{
tester = new WicketTester(new MyApplication());
}
-igor
On Fri, Mar 14, 2008 at 11:27 AM, jnorris [EMAIL PROTECTED] wrote:
Hi everyone,
The TestHomePage test class that is created by the wicket quickstart
archetype is throwing a
Thanks for your suggestions. I think this will solve my problem.
--
View this message in context:
http://www.nabble.com/Conditional-markup-tp16048105p16051475.html
Sent from the Wicket - User mailing list archive at Nabble.com.
My bad. I used OnChangeAjaxBehavior instead of AjaxEventBehavior, it
works perfectly now.
I will file a jira issue for the bug though.
AjaxEventBehavior dateOnChange = new AjaxEventBehavior(onchange) {
@Override
protected void onEvent(AjaxRequestTarget target) {
-stephan
Sorry, I meant the updateTree method. Anyway, 23 seconds seems quite a
lot to me. Any chance you could submit a stripped down example I can
take a look at?
-Matej
On Fri, Mar 14, 2008 at 6:01 PM, jeredm [EMAIL PROTECTED] wrote:
I added the following code and it correctly refreshed the node:
Sorry if I'm being dense. I'm coming to Wicket from the Struts world.
;)
The roles beans in the collection have a Boolean property 'hasRole'
which I use to set the checkbox state. It has other properties I use to
display the descriptions.
Maybe it will be helpful for me to explain why the
CheckGroup and Check work like this:
CheckGroupT(String id, IModelCollectionT selected);
CheckT(String id, IModelT)
so checkgroup has the model that holds your selection of objects of
type T, while each Check component's model contains an item of type T.
when you submit the form checkgroup's
On 3/13/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
see ContextImage and how it builds a context-relative path...
So, still use an ExternalLink?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
yeah. external link is for building non-wicket related urls
-igor
On Fri, Mar 14, 2008 at 2:16 PM, James Carman
[EMAIL PROTECTED] wrote:
On 3/13/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
see ContextImage and how it builds a context-relative path...
So, still use an ExternalLink?
Hey Igor,
Works for now, but i had to print to figure out the path of component ...
just wondering if there is a cleaner way to get the component Path ... may
be something that i am not aware of ?
Thanks on the DDChoice though. appreciate it.
On Fri, Mar 14, 2008 at 6:26 AM, lars vonk [EMAIL
I have a requirement that when user click a checkbox, should warn the user
with the consequence. The user needs to click OK/Cancel in the box to
continue.
Here are the checkbox codes.
final CheckBox confRequired = new CheckBox(confRequired, new
AbstractCheckBoxModel()
{
private static final
I have a page with AjaxFallbackButton on it. On RuntimeException, I want to
show some error message in the feedbackpanel on the page. For testing, I
use this one page and one form and the following code in my WebApplication
to try:
@Override public RequestCycle newRequestCycle(Request
Hi!
I have troubles creating a css menu with wicket and css.
I'm using the RepeatingView in Wicket for the UL, LI list. But the UL and LI
needs some extra tweek for IE.
I need to do something like this for it to render properly. How can I
integrate this with wicket?
!--[if lte IE
Are you running your app using Quickstart's test.Start? That one does not
have Jetty-Plus and does not load your jetty-env.xml and you will get the
error you are seeing. Use 'mvn jetty:run' instead. It does Jetty-Plus and
loads jetty-env.xml from WEBINF all without any additional config.
If
I have a listview. This listview displays a panel that contains
trtd*textbox*/tdtd*label*/td/tr Is there a way i can update the
label without making the user lose focus on the textbox they're typing in?
Hello,
I wanted to let you guys know about my new wicket website:
http://www.startfound.com http://www.startfound.com/
I've only been working on this for about 1.5 weeks, so there's not much
functionality and it's not very interactive, but I have a lot of big plans
in the future.
neato.
couple ideas...
dropdown to select startups by category (for example, all startups with a
way to make money ;-))
bigger font and a bit more margin in the footer page navigator
get the startups themselves into presenting their pitch
Dan Kaplan-3 wrote:
Hello,
I wanted to
you could do it that way. another way to do it would be to create a link
panel. you could then subclass and decorate the panel in various ways.
i do it this way so i can leverage my application with panel factories.
this can be quite powerful: i simply override a factory method or install
On 3/14/08, Jonathan Locke [EMAIL PROTECTED] wrote:
you could do it that way. another way to do it would be to create a link
panel. you could then subclass and decorate the panel in various ways.
i do it this way so i can leverage my application with panel factories.
this can be quite
unfortunately, that's not open source.
in general, the structure of your panel factory(ies) probably depends on
your application. one simple possibility is to make a factory that
associates a panel class for a given model type. then just newPanel(id,
model). so this simple case works only
wicket should remember focus as of 1.3 and restore it...you can always
set it manually via ajaxrequesttarget.focus(component)
-igor
On Fri, Mar 14, 2008 at 4:21 PM, Dan Kaplan [EMAIL PROTECTED] wrote:
I have a listview. This listview displays a panel that contains
Thanks for your suggestions, I appreciate your feedback. I was thinking of
adding tagging to the site, would that solve the same problem that the
dropdown would?
Bigger font has been suggested to me before too. Do you have any specific
areas for that advice, or is it just too small in general?
I'm using 1.3.1 and focus gets lost when ajax replaces the component I'm
typing in. I suspect that ajaxrequesttarget.focus(component) will put the
focus on the front or the end of the component rather than where it was
anyway, right?
-Original Message-
From: Igor Vaynberg
Couldn't you just do this as a panel:
wicket:panel
a wicket:id=linkspan wicket:id=labellabel/span/a
/wicket:panel
And it has this constructor: public LabelLink(String id, IModel urlModel,
IModel labelModel);
I'd certainly vote for that to be added to the repo
-Original Message-
From:
Dan,
Very impressive for 1.5 weeks of work! How much would you attribute that
productivity to Wicket vs your general experience and prowess?
I've just started building a site with Wicket, but I can see that it could
become very productive after working with it for a while. Coming from
Struts/JSP,
All,
I am trying to understand page serialization/deserialization a bit
better, so I create a Quickstart project and started tinkering. I
modified the HomePage class as follows:
public class HomePage extends WebPage implements Externalizable
{
private static final Logger log =
well, thats what you get for replacing the component that the user is
actively using :) you can always wire in some js to put the cursor at
the end of the textfield
-igor
On Fri, Mar 14, 2008 at 6:02 PM, Dan Kaplan [EMAIL PROTECTED] wrote:
I'm using 1.3.1 and focus gets lost when ajax replaces
66 matches
Mail list logo