Hi everybody!
I want to use modal panels for forms which seems to be a good choice.
Some of my forms need to have multiple pages which I would like to
display on tabs. Tabbing work fine in normal wicket panels and pages
when I provide the necessary CSS and Javascript. But somehow the modal
Antony Stubbs wrote:
Yes, the ⇒ is actually what the = is supposed to be in Scala, and is a
UTF8 character, which I'm sure would be supported by all modern editors.
I'm surprised you can't see it properly. What OS and version of Eclipse
are you viewing them with? I am toying around with
we used Page in the modal instead of Panel.
In the page we added all header contributers.
I'm not sure, but what if you add these contributers to the page that the
modal window is in?
Eyal Golan
egola...@gmail.com
Visit: http://jvdrums.sourceforge.net/
LinkedIn:
I go with Martin, use iFrame.
This is what we do.
We have two Wicket apps, running on the same machine, the web.xml triggers
two different Wicket apps. Why you ask? an old and a VERY BAD decision.
In order to navigate from one app to the other we actually use URLs. In
order to show page from app B
Hi,
I tried to use the AjaxPagingNavigationIncrementLink as standalone component.
As javadoc describes this should be possible like using the
PagingNavigationIncrementLink. But if I click on this link an exception is the
result.
After diving into the code I have seen that the
With using the getVariation() method is the 'fallback' process for when
a particular variant isn't found like this:
(a) Incremental removal of variant suffixes using '_' as the delimeter:
i.e. Wicket looks for files in the following order until one is found:
HeaderPanel_Var1_Var2_Var3.html
Am Donnerstag, den 10.09.2009, 14:03 +1000 schrieb Chris Colman:
why? what is different between a 10 or a 50 item song panel? the
number
of items? you should anyhow use a ListView which repeats the her is
the
song-block as many times as you want to..
It is using a ListView - the desire
Thanks for those suggestions. I've actually got it kind of working
*with* an IComponentResolver and that seems to be working fine for now.
-Original Message-
From: Michael Mosmann [mailto:mich...@mosmann.de]
Sent: Thursday, 10 September 2009 6:24 PM
To: users@wicket.apache.org
Thanks for the reply.
What I am looking for, is shown under:
http://esa.ilmari.googlepages.com/ZMarker2.htm (placing markers which are
too close together)
Shiraz
On Wed, Sep 9, 2009 at 9:34 PM, Pedro Santos pedros...@gmail.com wrote:
See if it occurs on http://maps.google.com/ too. You can put
Hi,
In JSP pages, it is quite simple to change HTML rendering as it is possible
to test java properties and depending on the value we can display or hide
html code.
How is it possible to do this in Wicket ? Is there a wicket tag that we can
use for that ?
E.g. Depending of the value returned by
Hi, Martin!
I try use
tester.assertVisible(messageTabs:panel:company:commentForm:commentCreateModal)
where
messageTabs:panel:company:commentForm:commentCreateModal is
my.app.class.NotificationModalWindow
where
NotificationModalWindow extends ModalWindow.
But it not work,
Yes.. you need to check the panel INSIDE the modal panel.
And a hint: avoid using string paths to the maximum... you'll have
more flexibility in refactoring. Just do like this:
MessageTabs tabs = (MessageTabs) tester.getLastRenderedPage();
Panel panel = tabs.getPanel();
Company company =
How is it possible to do this in Wicket ? Is there a wicket tag that we can
use for that ?
If you want to hide a component just say component.setVisible(false);
If you wnat to hide component and surrounding html markup, do the following:
wicket:enclosure
Hi
I've got a ModalWindow which lets the user select some choices.
Now I need a button in that ModalWindow allowing the user to enter some
new choices.
I don't want that target to be another ModalWindow (as it's referenced
from other places too), so I need to redirect the user to that new page
With OO you can teach you objects to behave, rater the set then every time:
String property;
add(new Button(red){
@Override
public boolean isVisible() {
return property == red condition
}
});
add(new Button(green){
Hi,
I would like to know if I can create a DropDownChoice where the value to be
displayed in the drop down list corresponds to the description of my
enumeration (e.g. Accepted) while the value to be returned is the value
defined in the enumeration (e.g: ACCPT) ?
public enum ProcessingStatusType
Or with attribute:
add(new Button(red_or_green)add(new AttributeModifier(class, new
AbstractReadOnlyModelString() { getObject() { return condition ?
red : green; }});
**
Martin
2009/9/10 Pedro Santos pedros...@gmail.com:
With OO you can teach you objects to behave, rater the set then every
Hi Charles
No problem. Just make an IChoiceRenderer which calls getDescription for
the display value and getValue for the id.
Matt
Charles Moulliard wrote:
Hi,
I would like to know if I can create a DropDownChoice where the value to be
displayed in the drop down list corresponds to the
Perhaps you have missunderstand me.
I want to present only a PageableListview with '' and '' under it. If I use
Ajax free variant PagingNavigationIncrementLink this is no problem but using
the Ajax there is an Exception that the navigator is missing.
The javadoc says: ...it will update the
You mean create something like this :
add(new DropDownChoice(requestStatus,
Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() {
public Object getDisplayValue(Object objDispl) {
return ProcessingStatusType.valueOf((String)
Please use debugger to find out..
2009/9/10 cmoulliard cmoulli...@gmail.com:
You mean create something like this :
add(new DropDownChoice(requestStatus,
Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() {
public Object getDisplayValue(Object
Yes, I take a second read and got the same impression than you.
You can extends AjaxPagingNavigationIncrementLink and open a JIRA
1 - to change the doc:
pageable and itself or the navigator the link is part to pageable, itself
and the navigator the link is part
since the
@Override
public String getDisplayValue(Object status) {
return ((ProcessingStatusType) status).getDescription();
}
On Thu, Sep 10, 2009 at 9:46 AM, cmoulliard cmoulli...@gmail.com wrote:
You mean create something like this :
add(new DropDownChoice(requestStatus,
Hi
Close but not quite. getDisplayValue gets the catual ELEMENT of the list
- so objDispl is of type ProcessingStatusType already.
So in your case it would be something like:
public Object getDisplayValue(Object objDispl) {
return ((ProcessingStatusType) objDispl).getDescription();
}
You cast objDispl to String which is obviously(?) a ProcessingStatusType
cmoulliard wrote:
You mean create something like this :
add(new DropDownChoice(requestStatus,
Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() {
public Object
throw new RestartResponseException(OtherPage.class)
window.close() is not needed!
Am 10.09.2009 um 12:50 schrieb Matthias Keller:
OtherPage.class
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For
Ok, I will choose option 2 because then it is consistent with the non Ajax
variant PagingNavigationIncrementLink.
Thanks for your help,
best regards,
Andrej
- Original Message -
From: Pedro Santos pedros...@gmail.com
To: users@wicket.apache.org
Sent: Donnerstag, 10. September 2009
Hi Peter
You would be right as long as it wasn't for a ModalWindow.
When having an open ModalWindow, wicket seems to register an unload
javascript event which - when trying to navigate away from the page (be
it by following a link, closing the window etc), displays a confirmation
message
wicket will not iterate over '_' delimiters that you supply in the
return value of getVariation().
-igor
On Thu, Sep 10, 2009 at 1:21 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:
With using the getVariation() method is the 'fallback' process for when
a particular variant isn't found
I want to add nocache header to my pages ,
code from WebPage
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-cache, max-age=0,
must-revalidate); // no-store
and I also added
response.setHeader(Cache-Control,no-cache);
Thks for all.
With the following syntax :
add(new DropDownChoice(requestStatus,
Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() {
public Object getDisplayValue(Object status) {
return ((ProcessingStatusType)
The value on model are on ProcessingStatusType instance. Use
((ProcessingStatusType)model.getObject()).getValue() to access the value
REJEC
On Thu, Sep 10, 2009 at 12:39 PM, cmoulliard cmoulli...@gmail.com wrote:
Thks for all.
With the following syntax :
add(new
I have the below snippet of code used to allow the user to change their password by typing their old password and then typing in their new password twice. Not sure why but I'm getting the following exception when the code is executed:WicketMessage: No get method defined for class: class
This works for me:
@Override
protected void setHeaders(WebResponse response)
{
response.setHeader(Pragma, no-cache);
response.setHeader(
Cache-Control,
no-cache, max-age=0, must-revalidate, no-store
);
}
no-store is needed to
i tried this it did not work , does it have anything to do with
urlencodingstrategy ?
mbrictson wrote:
This works for me:
@Override
protected void setHeaders(WebResponse response)
{
response.setHeader(Pragma, no-cache);
response.setHeader(
but the browser is still caching the pages , I hit the back button or
forward button the page is not refreshed , please tell me how to prevent
browser from chaching my pages.
This has got nothing to do with CACHE. It is Wicket's pagemap. If you
hit BACK it loadas the OLD page from PAGEMAP /
I am not sure, but you may want to double-check where the caching is actually
happening, and whether setHeaders() is working.
For example, using Firebug or something simliar you should be able to check
if the browser cache is being used or if it is actually making an HTTP
roundtrip. You should
Thanks. Worked great!
Pedro Santos-6 wrote:
PasswordTextField passwordField1 = new PasswordTextField(password);
PasswordTextField passwordField2 = new
PasswordTextField(controlPassword);
on these lines you are creating components with null model, and on wicket
models can be inherited
I restarted firefox and then it works.Thanks
mbrictson wrote:
I am not sure, but you may want to double-check where the caching is
actually happening, and whether setHeaders() is working.
For example, using Firebug or something simliar you should be able to
check if the browser cache
Wondering if there is a way in Wicket to conditionally disable a particular element from a list of choices in a CheckboxMultipleChoice component? Anyone know if this is possible?
You'd probably have to roll your own copy of CheckboxMultipleChoice
because its method onComponentTagBody is final. There it would be
pretty easy to individually make a checkbox enabled/disabled:
// Add checkbox element
The component let all options enabled or disabled. I wondering 3 options:
1- you can implement an AbstractReadOnlyModel that returns only the
avaliable options to your CheckboxMultipleChoice
2 - open an JIRA asking to CheckboxMultipleChoice use an isEnabled(choice,
index, selected) method to
Hi Jeremy
Should we have a list of offendending project?
2009/9/6 Jeremy Thomerson jer...@wickettraining.com:
First, jquery was built. They don't follow the naming conventions like they
should, so you have to look into the pom to realize that it's actually
wicketstuff-jquery [1].
Second,
My vote would be to create a common jar package that contains the
relevant panels along with their associated business logic, DAO/ORM
etc.
Then you can use that jar package in both of your apps seamlessly
assuming there are not more complex interactions going on. We use this
paradigm on our apps
Hi Igor,
Is there any interface available that we can override to implement that
kind of behavior?
Wicket's usually pretty good like that - there's usually some interface
available that allows us to put in our own home grown implementation of
something.
I don't know if IResourceLocator is the
Well.. that doesn't help if the other app is on other server and other
db and live data should be viewed from the other app.. in that sad
case you do need iframe.
**
Martin
2009/9/10 John Armstrong siber...@siberian.org:
My vote would be to create a common jar package that contains the
Databases have this cool feature called 'access control' ;) Its fairly
trivial to set up the db to take connections from both apps and share
the live data.
The only time this hurts is if you need to share non-wicket content
(image galleries or pdfs that users upload or something) since NFS is
not
Databases have this cool feature called 'access control' ;) Its fairly
trivial to set up the db to take connections from both apps and share
the live data.
Yes but if we assume that the applications are separate, i.e., they
cannot be merged.
If they can be merged it turns into developing a
Hello,
I would like to know where I could find documentation on the issue of
serializing objects inherited from a component's container as in the example
below. I tried looking at the wicket source code to see when this occurs but
still don't understand when/how it is done.
//...
final Product
This was my point, many times people 'assume' they are individual apps
when they are not. I just wanted to highlight that this should be
investigated before the assumption was made.
For example, I just completed an intranet project where it was
'assumed' that there were 3 different systems.
IStringResourceLoader is what you want most likely.
-igor
On Thu, Sep 10, 2009 at 11:37 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:
Hi Igor,
Is there any interface available that we can override to implement that
kind of behavior?
Wicket's usually pretty good like that - there's
add new Link( addToCart) {
public void onClick() {
getSession().getCart().add( p.getId());
//..etc
your anonymous class keeps a reference to p because inside you
reference p via p.getId().
-igor
On Thu, Sep 10, 2009 at 12:00 PM, J.-F. Rompre jrom...@gmail.com wrote:
Hello,
In the time it would take to generate the list, you could fix the problems.
I wrote detailed instructions for adding projects to WS-core, so someone
should be able to take those and fix the projects that are not meeting those
standards.
You want to do it?
--
Jeremy Thomerson
I want to disable back and forward button for which I followed
HistoryAjaxBehavior example
final AjaxLinkVoid linkTwo = new AjaxLinkVoid(linkTwo) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(final
Hi there:
In MultipartServletWebRequest constructor we have:
...
(line 93) DiskFileItemFactory factory = new DiskFileItemFactory();
...
which inhibits anyone from reusing MultipartServletWebRequest with a
different factory. The only solution is generate a new class that is a
copy of this one,
I have a RefreshingView followed by (not in) a Form.
On form submit, an object is added to the db list
associated with the RefreshingView.
I'm wondering why the small change (see comments)
to my RV causes it to not refresh automatically.
A browser refresh shows the changes.
Thanks,
-troy
Thanks Igor for the quick response - I guess this is stating the obvious, but
I conclude that this is just part of the page/component serialization?
Correct me if I am wrong, but from what I understand the reference to an
outer scope obj. is a 'field' of the inner class and therefore required
wicket serializes the page which contains all the components - so
everything your components hold on to is also serialized. this is why
we have models that can detach - so you can release the heavy state
before the page is serialized, and reacquire it again when needed.
-igor
On Thu, Sep 10,
Hi people,
I want to have a hyperlink or button on click of which does a
history.go(-1) similar to javascript.(browser back button is not be used in
our application) with page parameters retained.
I did see couple of posts on this, like the isVersioned of the page is to
be set to true and do
I applied the busy indicator techniques found here:
http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.htmlas
a site wide implementation.
I am using an ajax to submit the form, and do to some condition, I redirect
to the user to another page. My problem
60 matches
Mail list logo