I think it is just awesome that you, not only replied to my question but took
extra effort to implement it on your page. So I learned three things today.
How to setup my grid with the HashMap, that it's not a problem to integrate
tapestry with twitter bootstrap and that you are "the shit"! Thanks a
Please tell me you're kidding... To populate my grid with the list of
hashsets I need to:
- implement my own grid data source
- implement my own bean model
but why isn't there an example on how to do this? I would imagine this being
a normal day-to-day case in web development?!
--
View this mes
Fair enough. So without the custom model, you can't use a HashMap with the
grid.
But then a logical question is how to set up this model without an actual
bean?
model = beanModelSource.createDisplayModel(Set.class, null);
Would this work?
--
View this message in context:
http://tapestry.104571
Ok. so let's say that I don't provide a model. Will this make my grid happy?
public Object getRowValue(int index) {
// This will provide my grid with the values
hashMap.get(index).values();
}
public Class<> getRowType() {
// This will act as a model and will feed table header
hashMap.g
You're right - sorry for that. It's List>
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/HashMap-as-a-Grid-source-once-again-tp5720533p5720535.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi all,
There are a lot of ways to present a hashmap in a view page but I'm
interested in my own GridDateSource implementation. There has been some
discussion regarding that on this forum but I could never find an example.
It's easy to just pass the hashmap values back to tapestry grid but how do
as soon as I've submitted the message I've found the answer.
I just used the "blankLabel" option. duh!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/A-blank-option-in-a-dropdown-list-populated-from-a-database-tp5720293p5720300.html
Sent from the Tapestry - User mailing
Great, thanks for the response.
but that leads me to another question. The specification says:
"The value for the blank option is always the empty string, the label may be
the blank string;"
I wonder if that could be set to anything else?
cheers
--
View this message in context:
http://tapest
Hi all,
How to insert a blank option or a "select all" option into tapestry t:select
control populated through tapestry selection model?
The examples from a jumpstart page seem to have a blank field which is never
set explicitly so I just assumed Tapestry handles it by default?! I don't
get the b
Mr. Wulf (shit this sounds cool!)
i didn't even know this could be done! but there is a questions that comes
to mind:
can injected objects be built on demand (runtime) or is it only once per
application session? once per thread basically.
you see, there is a reason why I decided to remove tapestr
One possible solution would be to create a HibernateUtils class for example
to hold a session object. I could then persist that object on application
state lavel like this:
class HibernateUtils {
...
@Persist(PersistenceConstants.SESSION)
private Session session = ...
...
}
is this a way to go? i
Hi good people,
i'm trying to get tapestry working with pure hibernate (no
tapestry-hibernate module involved).
With tapestry-hibernate you just inject a session into your components but
how does it work without the module? Where do I initialize my session
object? I don't want to do this heavy ope
You don't have to be sorry, I understand.
Can you please point me in the right direction on where to start reading
about this stuff?
How do I disable hibernate-tapestry module? How do I set up hibernate and
tapestry to run independently from one another?
--
View this message in context:
http://
Thanks for the reply Taha! It is indeed very useful.
I still find it hard to believe that you can't load/rebuild the entire
different hibernate session with Tapestry. No matter the time it takes. As I
said, I only need those databases to work one at the time.
Somehow I imagined it like this:
- cr
Can you please elaborate? I don't think I understand...
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Again-with-the-tapestry-hibernate-and-switching-the-database-tp5716477p5716482.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
Hi,
here's the problem that I'm facing.
I have a project with several databases (separate databases but the schemas
are the same!).
I want to decide which database to use when the user authenticates. That
user could use *only one database at the time* but he could switch between
them if he wants.
Hi all,
Although this is not a strange message, the circumstances under which it
happened are strange to me.
Tapestry reports an error when I try to include a non-java-type-object into
the grid.
All standard java types are shown correctly but a custom java type results
with the error.
This is a
17 matches
Mail list logo