Hi! I have a page that can have multiple views. A detailed list, a text list
and a thumbnail list.
All data is comping from the same model but how can I change the layout for
the view?
Should I use 3 different html templates or how should I solve this?
--
View this message in context:
http://w
Thanks! I'm using Fragment right now but I have some difficulties in
updateing the fragment.
I have 3 private classes in my Wicket page for each fragment.
private final class ThumbnailFragment extends Fragment
{
private static final long serialVersionUID = 0L;
Hi!
In my application a user should be able to connect keywords to a datasheet.
When clicking the link add keywords 10-20 textfields should appear and the
user can enter data to
the fields.
#1
textField
#2
textfield
..
How can I handle this like an array in wicket? I do not want to add
Couldn't you just use the Comparator? Add all items to a list, with the
translated name
implement Comparator and make the sort. Return the sorted list as a model.
--
View this message in context:
http://www.nabble.com/Sorting-and-ListView-tp16493832p16494143.html
Sent from the Wicket - User mail
Thanks!
I will try this immediately!
--
View this message in context:
http://www.nabble.com/Multiple-TextField-in-ListView-tp16492002p16510457.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscr
Hi!
I have this simple form that has a property model and in the onSubmit I
handle the data. Is this the correct way of doing it? Sometimes it takes a
little time for the form to redirect after post.
If doing this in php I would have an intermediate page that would handle the
process so the user
Hi!
I have extended the SpringWebApplication and the init method looks like
addComponentInstantiationListener(new SpringComponentInjector(this));
I want to access my @SpringBean in the init method but it fails. How can I
do this? I need to cache
all users from a webservice in application start
Hi!
In my property file i can do this
email.subject=Hi {name}! Here is your confirmation.
How can I use this in my wicket page? I have looked at getLocalizer() but
there is no were to set the name variable. How can I use this in wicket?
--
View this message in context:
http://www.nabble.com/l
This is what I got so far
new StringResourceModel( "email.forgotlogin.body" , Login.this, new
Model(), new Object[]{ user.getUserName(), user.getPassWord() }
).getString();
must I really do this for every string?
--
View this message in context:
http://www.nabble.com/localizer-and-variables
Where should I do that?
I have done this right now and it worked
(Application)Application.get()).getSpringContextLocator().getSpringContext().getBean(
"setting" )
but it is not pretty!
--
View this message in context:
http://www.nabble.com/%40SpringBean-in-init-tp16548410p16553797.html
Sent f
That worked like a charm!
Thanks!
--
View this message in context:
http://www.nabble.com/%40SpringBean-in-init-tp16548410p16558424.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
Hi!
How can I add dynamic parameters to my applet from wicket?
param name="DocumentId" value="292640"/>
The value needs to come from wicket. How can I add this?
--
View this message in context:
http://www.nabble.com/Applet-parameter-tp16657238p16657238.html
Sent from the Wicket - User mailing
I looked at this example and solved it.
http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html
http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html
--
View this message in context:
http://www.nabble.com/Applet-parameter-t
Hi!
I have a problem with a menu that should be in all pages but have different
links.
Is there anyway of achiving this. Adding links to parent class or something
like that. It is a right meny
with the same layout but different content.
--
View this message in context:
http://www.nabble.com/pr
Thanks!
How can this be done with markup inheritance.
I want to display a div menu like
-- Header
content change for pages
-- footer --
The content for pages could be and with links. If I use inheritance
then the content will be in a parent page. I don't know how to proceed.
--
V
Thanks alot. It worked now. inspired by suckerFishPanel this is what I came
up with
class NavigationMenuItem{
public static final String LINK_ID = "link";
private final AbstractLink link;
private final Label label;
Hi!
I need to add Checkboxes to a listview and a way to check, uncheck all
checkboxes using a Link.
any pointers would be appreciated.
--
View this message in context:
http://www.nabble.com/checkboxes-and-Link-tp16757399p16757399.html
Sent from the Wicket - User mailing list archive at Nabbl
Hi!
Is there any way that I can get the the current URL from my wicket
application.
the getServletContext() let me get the real path but I want the url.
like http://localhost/myapplication/...
--
View this message in context:
http://www.nabble.com/Get-working-URL-tp16758219p16758219.html
S
Thanks Igor
((WebRequest)
getRequest()).getHttpServletRequest().getRequestURL().toString() did the
trick!
--
View this message in context:
http://www.nabble.com/Get-working-URL-tp16758219p16758760.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
Hi!
I have an user Form that is posted with AjaxFallbackButton. When the forms
gets submitted without error
I want to clear the form. How can I reset the form?
--
View this message in context:
http://www.nabble.com/Form-clear-tp16760778p16760778.html
Sent from the Wicket - User mailing list ar
Thanks but this will add a checkbox to select all not a link. I want to
select all with a link and not a checkbox
--
View this message in context:
http://www.nabble.com/checkboxes-and-Link-tp16757399p16795205.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi!
I'm using the getServletContext().getRealPath( "/" ) for saving uploaded
images, xml and so on for my wicket application.
My problem is that when I deploy my application all this files will be
deleted. How can I save my files in an external folder within wicket and
load, show images in wicke
What version of wicket are you using.
>From the 1.2 snapshot wich was a while ago
=
This validator has been deprecated in favor of
FormComponent.setRequired(boolean) Validator that ensures a component has a
non-null and non-empty value. If the component's value is
Thanks I have looked at it and this is what I got so far
protected void onComponentTag(ComponentTag tag)
{
checkComponentTag(tag, "a");
checkComponentTagAttribute(tag, "href", "#");
CheckGroup group = (CheckGroup)findParent(CheckGroup.class
No you are perfectly right. I have now Springed a path into the wicket that
holds the folder for my external folder.
The problem arises when trying to show an image in the wicket applet from
the folder but I see you are suggesting to get it via a servlet. I'll have
to look into this for testing
I want to reuse a Link in wicket. I have a link that set response page to
another class.
I will have the same link for image and label. In some rare occations I
can't add the image and label to the link but I want to use the link for
both the label and the image. Is this possible?
--
View this me
Thanks!
I have made the javascript function outside wicket. It's not the best
solution but a global variable could be defined by another user.
Is there any way to add javascript in a function manner and not in the
onclick. I know I can call a javascript function but can I supply the whole
funct
Any component that has a textfield that changes default value if focus is
gained and set the default value if focus is lost?
--
View this message in context:
http://www.nabble.com/Default-value-on-textfield-tp16804315p16804315.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi!
I have a model that should be shared with 4 websites. site1.se, site1.com,
site2.se, site2.com
So the only diffrents between site1.se and site2.com is the language. The
diffrents between site2 and site1 is layout.
How can this be done? I want to set the langauge in startup. the site1.se is
Thanks!
Is this really a good idé? What about testing. editing the host files I
guess? Is this what you normally do when building different websites with
the same model?
--
View this message in context:
http://www.nabble.com/Problem-with-how-to-make-variation-tp16834129p16849672.html
Sent from
Thanks you very much. Do you set up virtual hosts in tomcat, JBoss that all
points to the same application?
This is what I got so far.
public class HairlessSession extends WebSession
{
private static final long serialVersionUID = 1L;
public HairlessSession( Request requ
Another question for this..
The site1.com text will be different from Site2.com text even if the
resource key is the same the
text will not be the same. Can you set a resource based on locale and style?
--
View this message in context:
http://www.nabble.com/Problem-with-how-to-make-variation-t
Jepp, pagename_style_language.properties.
Thank you for your feedback. I will go with this stratergy
--
View this message in context:
http://www.nabble.com/Problem-with-how-to-make-variation-tp16834129p16850182.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Not quite sure but you can get the folder that is the root of your
application context
File file = new File( getServletContext().getRealPath( "/" ) );
--
View this message in context:
http://www.nabble.com/How-to-set-the-path-for-a-uploadfolder--tp16848200p16850438.html
Sent from the Wicket - U
Hi!
I want to create administration for a site. Site.se. The administration
should reside in Site.se/administration
How can I tell wicket to go to a BasePage when user types in
Site.se/administration. The HomePage is
already set for the Site.se. How can I set a HomePage for
Site.se/administratio
Hi!
I'm generating files ( pdf ) in a server and I want to check for the file
and when the file becomes
available show it to the user
1. User clicks create preview
2. A modal window opens showing ( processing file )
3. When the file is available show link in modal window.
I don't know how
Yes, I tried a normal thread but that of course didn't work
final WebMarkupContainer container = new WebMarkupContainer( "container" );
container.add( new AjaxSelfUpdatingTimerBehavior(
Duration.ONE_SECOND){
protected void onPostProcessTa
Hi! I can't set initial height and width on my modal window. It's always the
same height and width when opening it.
final ModalWindow modal;
add(modal = new ModalWindow("modal"));
modal.setPageMapName("modal-4");
modal.setCookieName("modal window 4");
Hi!
I must integrate my wicket webapplication with a creditor company. It is a
https post with a lot of parameters. I need to check all parameters first
and the forward the post to the billing company. Any suggestions on how to
do that?
--
View this message in context:
http://www.nabble.com/ssl
Ok!
I guess I'll have to do this outside of wicket. HTTPClient or something like
that. Is this correct?
--
View this message in context:
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16979016.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Still can't get this to work I have a post that is handled in my wicket
page.
After checking the parameters I try to post it with HTTPClient
HttpClient client = new HttpClient();
PostMethod post = new PostMethod("http://URL";);
post.addParameter( "UserName", "test");
post.addParameter( "Pas
I think I'm not marking myself very clear. Here is the scenario
1. User fills in wicket form with credit card information delivery method
2. Wicket form handles the post to check that everything is correct
3. A post to an external link must be done. The browser should follow. I
must leave my url
I've read some more and one solution is to make a form with body onload send
form. This will however make the page flicker wich is very ugly.
--
View this message in context:
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16981148.html
Sent from the Wicket - User mailing list arch
OK! This is the best I have come up with so far.
In My AjaxFallbackButton#onSubmit I check the form and I everything was ok I
append a javascript target.appendJavascript( "makeCallBack( 'http//:new url'
)");
And in html page
function makeCallBack( URL ){
document.forms[ "login" ].action = URL
Ok. I haven't resolved this yet. any more pointers?
--
View this message in context:
http://www.nabble.com/Modal-window-and-height-tp16960447p17022538.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
The java doc for the modal windows says
* [EMAIL PROTECTED] #setResizable(boolean)} specifies,
whether the
window can be resized.
* [EMAIL PROTECTED] #setInitialWidth(int)} and [EMAIL
PROTECTED]
#setInitialHeight(int)}
* specify the initial width and height of window. If the window is
resiza
Is there any good tutorial on wicket, hibernate and spring? When dealing with
my lazy many to one relations I get lazy loading exception. Very annoing.
Lets say I have an Item class that has many to one relations to a category.
I list the items in a wicket page and when click a link I do
setResp
Thanks!
This is what I'm trying to do but I still get the exception.
This is from my DAO
@SuppressWarnings( "unchecked" )
public List getCollections(){
org.hibernate.Session hibernateSession =
(org.hibernate.Session)getEntityManager().getDelegate();
return hibernateSession.createCriteria
No it does not work. I have looked in the source code as well but to see if
I'm doing something wrong but I still get default height and width that is
set in the source.
--
View this message in context:
http://www.nabble.com/Modal-window-and-height-tp16960447p17044911.html
Sent from the Wicket -
I have a page that list a Items that is hibernated annotated. When clicking
on a wicket link
using setResponsePage( new ItemPage( item ) ); I get the exception when
trying to render my DropDownChoice.
I use Detached model for this. load is not called, if you mean
hibernatesession.load or entitym
I have tried that. Still does not work. The only differens is that it is a
resizable( false ) window
--
View this message in context:
http://www.nabble.com/Modal-window-and-height-tp16960447p17045142.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
I have session in view filter but still gets LazyLoadingException even if I
use detached models! Ahhh...
Solved it temporarily by using Eager fetch but this is going to end up bad
if everything is eager.
--
View this message in context:
http://www.nabble.com/How-to-avoid-Lazy-loading-exceptio
Please do. This would be very helpful.
In my former ( first ) wicket application I used dto's but I would like to
use detached hibernate objects instead for this project.
Your posts has been most helpful.
--
View this message in context:
http://www.nabble.com/How-to-avoid-Lazy-loading-exceptio
I have tried solving this checking out Wicket in Action and some googling but
can not find where to look.
All components need an id. And the same in markup. My problem is the
following.
I need to add attributes to an item. example size, color.
What kind of attributes that is possible is determi
Use a ListView to iterate over the attributes, in the onPopulate you
then add your textfield.
Thanks! But the text field need a dynamic id. The name of the id is in
database and
there can be different amount of attribute headers for different sub
categories.
--
View this message in context:
Hi!
I will check out the Object that was posted thanks!
Yes I put the opensessioninview filter before.
I think the problem is this.
Lets say I list all of my items in one page.
Name, Description
TestName, TestDescription
When clicking the name link I do the following
setResponsePage( new
Thanks Maurice! This worked perfect!
--
View this message in context:
http://www.nabble.com/Markup-with-unknown-name-for-TextField-tp17058594p17062769.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To
Another question for this. How do I get the detached model to use when
submitting the form?
public class AttributePage extends BaseAdministrationPage {
private se.edgesoft.hairless.entities.item.Item item;
public AttributePage( se.edgesoft.hairless.entities.item.Item
Yes, sorry. I have tried removing unessesary code. The dao objects is from
the base class that is sping injected via @SpringBean
This is the class that lists the items. When clicking on a link that edits
or adds an item see ItemPage
public class ItemListPage extends BaseAdministrationPage{
I've read this on the wicket wiki to add new component via ajax.
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
My problem is that if the user have added some values in the form and the
clicks the
aj
Thanks igor!
I think I have missunderstood the whole thing about detachable models. I
must re-read this.
Thanks for your time and effort.
--
View this message in context:
http://www.nabble.com/How-to-avoid-Lazy-loading-exception-tp17040941p17067785.html
Sent from the Wicket - User mailing
Hi!
I'm using the getDefaultChoice to have --- choose brand in my drop box.
@Override
protected java.lang.CharSequence getDefaultChoice(final Object selected){
return ""+
getLocalizer().getString("category.select.edit", CategoryPage.this )
+"";
}
This is rather teedious to have this i
I have some questions on detached models for Wicket
Let's say I create a detached model like this
IModel detachedModel = new LoadableDetachableModel(){
protected Object load(){
return . spring injected hibernate dao lets say Categories
}
};
So now I'll have a detached model.
Thanks Igor!
So if I use the sample code you gave me and, when getting the Object from
the constructor
on the response page I will have a detached object.
Do I have to load the object from database here? When looking at the Phone
book example I see you pass id instead of object. Is this more li
Hi!
I have this list view
ListView view = new ListView( "translatorView" , cultureModel ){
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem item) {
When submit is pressed I need to get an array of selected users.
It can contain 100 drop down boxes and I want the selected user in each drop
down.
--
View this message in context:
http://www.nabble.com/How-to-get-select-objects-from-ListView-tp17146212p17146322.html
Sent from the Wicket - User
Of course :) thanks.
--
View this message in context:
http://www.nabble.com/How-to-get-select-objects-from-ListView-tp17146212p17146720.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe
Thanks that worked great.
--
View this message in context:
http://www.nabble.com/Default-choice-tp17135706p17163055.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECT
Hi!
I want to change the background image and color on different wicket pages.
All my pages inherits from
a root page that is the master layout. How can this be done.
I must have it like
body,html{
background: .
}
so that I have browser compability. Right now I have this in a external c
Sorry... a little early. Not chaning, changing.
I have looked at HeaderContributor() but that requires a css file and I
want just to append like SimpleAttributeModifier but the html, body can't
have the same id and If I add a wicket:id on body I get exception when
extending the wicket page.
--
I have this page class. When submitting the form via the AjaxButton I get a
null pointer exception.
It passes the instanceof in onSubmit but all data is null. I dont get this.
In the LoadableDetachable model I do new CartItem and when displaying the
page the first time I see the drop down choice c
I use getModel() it's an error. I have tried with getModelObject as well.
--
View this message in context:
http://www.nabble.com/Null-pointer-I-don%27t-understand-tp17269836p17269846.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
Thanks Jeremy that worked great
--
View this message in context:
http://www.nabble.com/chaning-background-tp17268044p17272824.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAI
Hi!
I'm using a Pageable List view to list my items. The problem is that it is
to slow when there are many items
In the database I have 2000 items and when I hit all of them the rendering
is slow. This is because of translating, calculating and so on. To solve
this I would like to do something l
Thanks!
I used this but I don't think it is any faster
class ItemProvider implements IDataProvider{
private static final long serialVersionUID = 1L;
public Iterator iterator(int first, int count) {
return getItemDao().getItems(getFilters(),
Yes, I use the page navigator.
--
View this message in context:
http://www.nabble.com/PagingNavigator-faster-paging-tp17272873p17274891.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe
I was unclear with the class.
I use PagingNavigation with my dataProvider but it's still to slow. Must be
something else.
--
View this message in context:
http://www.nabble.com/PagingNavigator-faster-paging-tp17272873p17274937.html
Sent from the Wicket - User mailing list archive at Nabble.com
Hi!
I have placed all my images in a folder outside my web application container
to preserve the images when I deploy.
My problem now is that to get an image I go thru my FileResourceServlet and
writes the image.
In every request to my FileResourceServlet I make a request to the database
to get
Really for now I do this for url
FileResourceServlet?fileResourceId=101
Else I need to do this.
FileResourceServlet?path=very...veryvery.long...pathforthefile
How do you know wich file to fetch?
--
View this message in context:
http://www.nabble.com/Image-from-resource
Hi!
I have subclassed PagingNavigator to delete the last and first element of
the pager. Now I need some way of setVisible( false ) on prev and next if it
is the first or last page. How can this be done.
Altso. the current page is renderered . Is it possible to have a
current_page or something l
Thanks alot! This just hides the first and last link. I want to add the prev,
next if the first or last is selected.
--
View this message in context:
http://www.nabble.com/Controlling-PagingNavigation-tp17290391p17300634.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---
I want to HIDE the prev, next if the first or last is selected.
--
View this message in context:
http://www.nabble.com/Controlling-PagingNavigation-tp17290391p17301483.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi!
I have a lot of pages that have text description. ( Many lines of text) It
can have css markup in with bold, color etc. My problem is that the site is
implemented in many languages.
How do you handle this?
--
View this message in context:
http://www.nabble.com/Text-handling-in-wicket-tp17
Yes, I have looked at it. Imaging this text
Here are some long description * and it goes on and onthe bold text and on
and on..
How do we handle the * and the bold text using i18n?
--
View this message in context:
http://www.nabble.com/Text-handling-in-wicket-tp17303050p17305344.html
Se
Doesn't this meen that if I use a class for css or id then I need to
consider, html file, property file and css file. So If a designer changes
the css then I need to change the property file as well. Is this really
good?
--
View this message in context:
http://www.nabble.com/Text-handling-in-wic
Sorry for my poor english. What I meen is separation of concerns.
Let's say I have html in my property file . like ( span style, or class )
for styling a certain phrase.
Is this a good approach? When a designer wants to maybe change or delete a
certain style he/she needs to look into the css t
A late reply. Exactly like MYoung described it.
--
View this message in context:
http://www.nabble.com/Text-handling-in-wicket-tp17303050p17306976.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsub
No, I don't. Thanks for your replies. I will use what you suggested. Thanks.
--
View this message in context:
http://www.nabble.com/Text-handling-in-wicket-tp17303050p17307148.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
Take a look at this link and see if it helps
http://javathoughts.capesugarbird.com/2007/06/changing-wickets-default-form.html
http://javathoughts.capesugarbird.com/2007/06/changing-wickets-default-form.html
--
View this message in context:
http://www.nabble.com/Form-validation-when-using-cust
The person.name check getPerson().setName() , getName(). If the person is
null you will get a nullpointer.
If you do get( 0 ) on a list and the null doens't exists then you will get a
IndexOutOfBoundException. Just try with a normal list and an object.
The list is probably initialized like with
I don't know if I got it right. Is the A null? Are you just doing A a; or A a
= null; ?
If you do this I don't understand why you don't get an exception. The
PropertyModel extends AbstractPropertyModel and when setting the property
model it does a super. In the AbstractPropertyModel it checks if
I know this code is a little long. My problem is that if the popupwindow get
called twice then all the data is null afterwards.
public class StorePage extends BaseAdministrationPage {
private Brand brand;
private Store store;
private BrandTranslation brandTransla
I solved this using a modal window instead of a popup window. Still don't
know what was wrong!
--
View this message in context:
http://www.nabble.com/Very-annoing-error-tp17323755p17330023.html
Sent from the Wicket - User mailing list archive at Nabble.com.
I think a good practice is to always take care of null objects and list your
self. You never know when or if the implementation might change.
--
View this message in context:
http://www.nabble.com/IndexOutOfBoundException-and-PropertyModel-tp17315359p17330046.html
Sent from the Wicket - User ma
I still can't find a way to hide the prev and/or the next on a certain
condition.
If the first page is showed I want to hide the prev. And if there are no
more pages I want to hide the next. Anyone that has done this?
--
View this message in context:
http://www.nabble.com/Controlling-PagingNavi
Thanks again Igor.
--
View this message in context:
http://www.nabble.com/Controlling-PagingNavigation-tp17290391p17330923.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL
Hi!
I was wondering how I could make a contribution for wicket. I'm not talking
about a code contribution but rather a small money contribution. I have got
a lot of help here on this forum and in fact I don't think I have ever
experienced this kind of help elsewhere!
--
View this message in co
Are you talking about an input type button? Couldn't you just use
add( new AjaxLink( "closeLink" ){
public void onClick( AjaxRequestTarget target ){
// close the modal window
}
} );
Markup
../path/to/link
--
View this message in context:
http://www.nabble.com/AjaxButton-withou
Hummm... this is an interesting question. Currently in have solved it like
this.
Add a javacript to the page that changes the forms target.
function makeCallBack( URL ){
document.forms[ "orderForm" ].action = URL;
document.forms[ "orderForm" ].submit();
}
In my wicket page
target.app
Hi!
In my website I have an textField for email and a password field for the
password.
The problem is that I need to print "Email here" , "Password here" in the
field so that the user can type in the fields. There are no room for labels.
I need some way of changing the password field to textfiel
1 - 100 of 288 matches
Mail list logo