Oxygen in tiling WM
in the last few days I have been playing around with i3 and I have come to appreciate the joys of a tiling WM.
Coming from KDE I do find it it a bit hard to accept the default look of both Gtk and Qt though, so I feel I had to add a large chunk of KDE back in to get my preferred colours and widgets back for those windows that need it. In order to get my beloved Oxygen theme to work well on both Qt and Gtk, the only way I found was to install the kdebase-workspace package and use the systemsettings app in there. That means that I effectively had to install the base kde packages, so my whole system is not as snappy as it could be.
I have two questions:
- is there a way to get the Oxygen theme to work in a way that depends less on KDE, resulting in a much lighter system ?
I tried qtconfig-qt4 but that doesn't recognize Oxygen, (only the standard super-ugly default themes). For Gtk I looked at lxappearance, that makes it possible to choose the Oxygen-gtk theme, but doesn't enable the customization of colours. Also I looked at the Trolltech.conf file that has some Qt settings in it (most of which seem to be ignored by KDE). I saw some threads on this, but most concluded there is no way to detach Oxygen from KDE more. Is that true ?
- now both GTK and Qt apps look great, but ironically my own Qt-interfaces (I write software for my own use in Python) look awful: the colours are the ones I've customized, but the widgets look like from the ClearLooks theme, not Oxygen. When I run my code on another, purely KDE system there is no problem. How can I cure this ? What magic do the KDE-apps do that i3 doesn't ? I can even run dolphin and that looks totally fine. Is there some environment variable I have to set for my python code to use Oxygen ? How can I check this ?
pointers very welcome..
J.
Last edited by nourathar (2013-06-03 19:09:22)
I found an answer to my second question that suggest that the answer to my first question is no:
It turns out there is a whole set of KDE python bindings in the PyKDE4 module; they are subclasses of the main PyQt4 classes such as QApplication, with some added KVoodoo, as for instance here:
http://api.kde.org/pykde-4.3-api/kdeui/ … ation.html
When I replace my QApplication with a KApplication, it shows the Oxygen theme as expected.
If I run this:
print list(Qt.QStyleFactory.keys())
it gives a list of the available Qt styles. When called within a QApplication it shows the standard ones, but from within a KApplication it shows the standard ones plus Oxygen. I suppose this shows that in its current form the Oxygen can not be independent from KDE.
I decided to go with the flow for now and I replaced i3-wm with i3-kde, which feels a lot more snappy on my system.
thanks,
J.
Similar Messages
-
Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View
Todd,
Let me try to explain you this time. I have a text field in a TiledViewBean.
When I display the page, the text field
html tag is created with the name="PageDetail.rDetail[0].tbFieldName" say
five times/rows with same name.
The html tags look like this.
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
When the form is submitted, I want to get the text field values using the
method getTbFieldName().getValues() which
returns an array object[]. This is in case where my TiledViewBean is not
bound and it is working fine.
Now in case when my TiledView is bound to a model, it creates the html tags
as follows.
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[1].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[2].tbFieldName" value=""
maxlength=9 size=13>
Now when I say getTbFieldName().getValues() it returns only the first
element values in the object[] and the rest of the
values are null.
May be we need to create a utility method do get these values from
requestContext.
raju.
----- Original Message -----
From: Todd Fast <toddwork@c...>
Sent: Saturday, July 07, 2001 3:52 AM
Subject: Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View
Raju.--
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing likeI'm afraid I don't understand your point--can you please clarify? Do you
mean "value" instead of "name"?
What are you trying to do? What behavior are you expecting but notseeing?
>
Without further clarification, I can say that the setValues() methodsNEVER
populates data on multiple rows of a (dataset) model, nor does it affect
multiple fields on the same row. Perhaps what you are seeing is theeffect
of default values. Model that derive from DefaulModel have the ability to
carry forward the values set on the first row to other rows in lieu ofdata
in those other rows. This behavior is for pure convenience and can be
turned off, and it is turned off for the SQL-based models.
Todd
[email protected]Hi,
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing like
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[0].tbFieldValue
in which case, the getValues() method works fine.
But in case where the tiled view is bound to a model, it populates
with different field names such as,
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[1].tbFieldValue
in this case, the getValues() doesn't work. Any soultion to this?
We are using Moko 1.1.1.
thanks in advance,
raju.
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
Does anyone know of is there a single method to get all values of a
display
field in a tiled view without having to iterate through all the
values ie
resetTileIndex() / nextTile() approach.
ie Something that returns an Object[] or Vector just like ND returned a
CspVector. I tried using the getValues() methods but that allways returns
a
single element array containing the first element.
(I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
creating a simple utility method to do the iteration on an arbitrary model
and build the list for you.
Todd -
Re: [iPlanet-JATO] Retrieving all Values from a Tiled View
Does anyone know of is there a single method to get all values of adisplay
field in a tiled view without having to iterate through all the values ie
resetTileIndex() / nextTile() approach.
ie Something that returns an Object[] or Vector just like ND returned a
CspVector. I tried using the getValues() methods but that allways returnsa
single element array containing the first element.
(I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
creating a simple utility method to do the iteration on an arbitrary model
and build the list for you.
ToddHi,
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing like
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[0].tbFieldValue
in which case, the getValues() method works fine.
But in case where the tiled view is bound to a model, it populates
with different field names such as,
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[1].tbFieldValue
in this case, the getValues() doesn't work. Any soultion to this?
We are using Moko 1.1.1.
thanks in advance,
raju.
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
Does anyone know of is there a single method to get all values of a
display
field in a tiled view without having to iterate through all the
values ie
resetTileIndex() / nextTile() approach.
ie Something that returns an Object[] or Vector just like ND returned a
CspVector. I tried using the getValues() methods but that allways returns
a
single element array containing the first element.
(I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
creating a simple utility method to do the iteration on an arbitrary model
and build the list for you.
Todd -
Getting the Values from a Tiled View
Hi,
I have a TiledView and I have checkbox in the tiled view. I am trying
to get the values of the checked boxes.
I have coded like this.
Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
if I see the links.length i get only one. In html If I see the code
it appends the TileIndex in brackets. If I replace the TileIndex with
0 in all the fields in endCbSystemUrl method I get the correct values.
In the TiledView beginDisplay() method my code is like this.
if (getPrimaryModel() == null) throw new ModelControlException
("Primary model is null");
super.beginDisplay();
resetTileIndex();
pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
getParent();
((DatasetModel) getDefaultModel()).setSize
(parentBean.SystemChoicesValue.size());
Any Suggestions on this.
Thanks
NamburiNamburi--
Remember, the getValues() method does not return the values from a column in
a TiledView. It is strictly for use by fields that can have multiple
values, like multi-select list boxes.
DO NOT remove the indexing feature from the field names, especially in the
case of checkboxes, because checkboxes aren't submitted back to the server
unless they are checked. By overriding the automatic checkbox tracking
feature JATO provides, you won't be able to tell which checkboxes were
actually checked by row--you'll simply get back a list the same size as the
number of checkboxes that were checked, without any placeholders for the
ones that weren't checked.
Instead, on submit, you simply need to move through the tiledView and check
the value of checkbox on each row:
tiledView.beforeFirst();
while (tiledView.next())
if (getDisplayFieldBooleanValue("myCheckBox"))
You can use the same construct to build up an array or list:
List checkedList=new LinkedList();
tiledView.beforeFirst();
while (tiledView.next())
if (getDisplayFieldBooleanValue("myCheckBox"))
checkedList.add(new Boolean(true))
else
checkedList.add(new Boolean(false))
Todd
Todd Fast
Senior Engineer
Sun Microsystems, Inc.
todd.fast@s...
----- Original Message -----
From: <vnamboori@y...>
Sent: Wednesday, October 17, 2001 3:49 PM
Subject: [iPlanet-JATO] Getting the Values from a Tiled View
Hi,
I have a TiledView and I have checkbox in the tiled view. I am trying
to get the values of the checked boxes.
I have coded like this.
Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
if I see the links.length i get only one. In html If I see the code
it appends the TileIndex in brackets. If I replace the TileIndex with
0 in all the fields in endCbSystemUrl method I get the correct values.
In the TiledView beginDisplay() method my code is like this.
if (getPrimaryModel() == null) throw new ModelControlException
("Primary model is null");
super.beginDisplay();
resetTileIndex();
pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
getParent();
((DatasetModel) getDefaultModel()).setSize
(parentBean.SystemChoicesValue.size());
Any Suggestions on this.
Thanks
Namburi
[email protected] -
Re: [SunONE-JATO] How to use a tiled view without a model
John,
Check out the docs for DefaultModel. There is an appendRow() method.
So get your tiledview's primary model (the tiledview's primary model
should be set to use an instance of DefaultModel), model.appendRow(),
then model.setValue("fieldname", value) for each value.
Rinse, repeat as needed.
c
jhoskins wrote:
I would like to use a tiled view, but populate the fields manually.
Any pointers about where I can set the size of the tiled view? I tried
setMaxDisplayTiles() in the beginDisplay, but it won't get down and
generate the rows.
John Hoskins
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspCraig,
Thanks for the pointers. I ended up doing something else. I set the
models setSize() method to set the max size, and as the tiles fields
iterated, populated the value from some vectors I had the data in
already. Is this solution fraught with peril and will ultimately fail,
or should I try your way?
John
--- "Craig V. Conover" wrote:
John,
Check out the docs for DefaultModel. There is an appendRow() method.
So get your tiledview's primary model (the tiledview's primary model
should be set to use an instance of DefaultModel), model.appendRow(),
then model.setValue("fieldname", value) for each value.
Rinse, repeat as needed.
c
jhoskins wrote:
I would like to use a tiled view, but populate the fields manually.
Any pointers about where I can set the size of the tiled view? I tried
setMaxDisplayTiles() in the beginDisplay, but it won't get down and
generate the rows.
John Hoskins
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
Re: [SunONE-JATO] Re: How to use a tiled view without a model
I'm not sure what is different for you now. You still parse the string
and put it into a data structure. Before the data structure was a
vector, in JATO its just a model with a "hidden" data structure (a hash
map).
MVC only really comes into play when you talk about where your write
this code, and where the data structure is being stored. So really, JATO
takes care of half of the MVC'ness of it all (where the data is store).
You just decide where to be the code to populate the model.
Make sense?
Is there something different required of you in JATO in this scenario
that I am not grasping?
c
Hoskins, John D. wrote:
Thanks for the feedback.
The problem I was solving involved a single string, which contained
delimited subsets of information.
The string looked like
this:"time|analyst|description|time|analyst|description|..."
In ND, I parsed it apart into it's components (time vector, analyst vector,
description vector), populated the repeated.
With JATO, how would I make a model for something that doesn't have a
database component like this?
I'm pretty new to this MVC thing, so bear with me.
John D. Hoskins
Telephone & Data Systems
Application Development & Support
Voice: 608.664.8263
Fax: 608.664.8288
Email: john.hoskins@t...
-----Original Message-----
From: Craig V. Conover [mailto:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
Sent: 6/26/2002 3.22 PM
Subject: Re: [SunONE-JATO] Re: How to use a tiled view without a model
I guess the only thing "weird" (for lack of a better term) about what
you are doing is that your are populating the model on the "display
cycle". Typically, the cycle goes like this:
Request -> populate model -> update data store -> retrieve data to
populate model -> display data
some of the above steps are optional but hopefully you get the point I
am making.
So what you are doing is:
Request -> populate model/display data
If it works for you, then it's not necessarilly wrong. But I would
probably have my model populated before I forwarded to the target
(displaying view bean) or at a minimum, in the begin display event of
the view bean or the tiled view, but not during the iteration of the
tiled view.
c
jhoskins wrote:
Craig,
Thanks for the pointers. I ended up doing something else. I set the
models setSize() method to set the max size, and as the tiles fields
iterated, populated the value from some vectors I had the data in
already. Is this solution fraught with peril and will ultimately fail,
or should I try your way?
John
--- Craig V. Conover wrote:
John,
Check out the docs for DefaultModel. There is an appendRow() method.
So get your tiledview's primary model (the tiledview's primary model
should be set to use an instance of DefaultModel), model.appendRow(),
then model.setValue("fieldname", value) for each value.
Rinse, repeat as needed.
c
jhoskins wrote:
I would like to use a tiled view, but populate the fields manually.
Any pointers about where I can set the size of the tiled view? I tried
setMaxDisplayTiles() in the beginDisplay, but it won't get down and
generate the rows.
John Hoskins
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspCraig,
Thanks for the pointers. I ended up doing something else. I set the
models setSize() method to set the max size, and as the tiles fields
iterated, populated the value from some vectors I had the data in
already. Is this solution fraught with peril and will ultimately fail,
or should I try your way?
John
--- "Craig V. Conover" wrote:
John,
Check out the docs for DefaultModel. There is an appendRow() method.
So get your tiledview's primary model (the tiledview's primary model
should be set to use an instance of DefaultModel), model.appendRow(),
then model.setValue("fieldname", value) for each value.
Rinse, repeat as needed.
c
jhoskins wrote:
I would like to use a tiled view, but populate the fields manually.
Any pointers about where I can set the size of the tiled view? I tried
setMaxDisplayTiles() in the beginDisplay, but it won't get down and
generate the rows.
John Hoskins
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
Re: [iPlanet-JATO] Re: Href click & tiled view display
Srinivas--
Remember, attachments don't come through on the forum. Please send them to
the jatoteam@e... alias.
Todd
----- Original Message -----
From: "Srinivas Chikkam" <srinivas.chikkam@w...>
Sent: Thursday, July 19, 2001 5:26 AM
Subject: [iPlanet-JATO] Re: Href click & tiled view display
Todd,
I'm calling resetTileIndex() in the begin display of the tiled views.
I'm attaching the code with this mail.
Outer tile: pgModelDistributionrMultiplePayeesTiledView
inner tile: pgModelDistributionrPayeeDetailsTiledView
Yes, Matt's mail helped me in resolving the first problem (submitting
the form on href click).
I have replaced the href from
<a
href="../Participant/pgModelDistribution?pgModelDistribution.linkNetDistribu
tion=&pageAttributes=">
$1,000 </a>
to
$1,000
and added a new javascript method as below:
function netDistFunc()
val = document.forms[0].elements["pageAttributes"].value;
_url =
"../Participant/pgModelDistribution?pgModelDistribution.linkNetDistribution=
&pageAttributes="+val;
>
document.forms[0].method = "post";
document.forms[0].action = _url;
document.forms[0].submit();
return false;
Now, I'm able to get the data entered by the user.
Thanks
Srinivas
Message: 2
Date: Wed, 18 Jul 2001 04:03:51 -0600
From: "Todd Fast" <toddwork@c...>
Subject: Re: Digest Number 157
Srinivas--
From where are you calling these methods, what event? Maybe you shouldsend
me the code for your nested tiled views--that's probably the easiest way
for
me to understand what's happening. Also, were any of Matt's
suppositions
correct?
Todd
The Information contained and transmitted by this E-MAIL is proprietary to
Wipro Limited and is intended for use only by the individual or entity towhich
it is addressed, and may contain information that is privileged,confidential or
exempt from disclosure under applicable law. If this is a forwardedmessage,
the content of this E-MAIL may not have been sent with the authority ofthe
Company. If you are not the intended recipient, an agent of the intended
recipient or a person responsible for delivering the information to thenamed
recipient, you are notified that any use, distribution, transmission,printing,
copying or dissemination of this information in any way or in any manneris
strictly prohibited. If you have received this communication in error,please
delete this mail & notify us immediately at mailadmin@w...
[Non-text portions of this message have been removed]
[email protected]Srinivas--
Remember, attachments don't come through on the forum. Please send them to
the jatoteam@e... alias.
Todd
----- Original Message -----
From: "Srinivas Chikkam" <srinivas.chikkam@w...>
Sent: Thursday, July 19, 2001 5:26 AM
Subject: [iPlanet-JATO] Re: Href click & tiled view display
Todd,
I'm calling resetTileIndex() in the begin display of the tiled views.
I'm attaching the code with this mail.
Outer tile: pgModelDistributionrMultiplePayeesTiledView
inner tile: pgModelDistributionrPayeeDetailsTiledView
Yes, Matt's mail helped me in resolving the first problem (submitting
the form on href click).
I have replaced the href from
<a
href="../Participant/pgModelDistribution?pgModelDistribution.linkNetDistribu
tion=&pageAttributes=">
$1,000 </a>
to
$1,000
and added a new javascript method as below:
function netDistFunc()
val = document.forms[0].elements["pageAttributes"].value;
_url =
"../Participant/pgModelDistribution?pgModelDistribution.linkNetDistribution=
&pageAttributes="+val;
>
document.forms[0].method = "post";
document.forms[0].action = _url;
document.forms[0].submit();
return false;
Now, I'm able to get the data entered by the user.
Thanks
Srinivas
Message: 2
Date: Wed, 18 Jul 2001 04:03:51 -0600
From: "Todd Fast" <toddwork@c...>
Subject: Re: Digest Number 157
Srinivas--
From where are you calling these methods, what event? Maybe you shouldsend
me the code for your nested tiled views--that's probably the easiest way
for
me to understand what's happening. Also, were any of Matt's
suppositions
correct?
Todd
The Information contained and transmitted by this E-MAIL is proprietary to
Wipro Limited and is intended for use only by the individual or entity towhich
it is addressed, and may contain information that is privileged,confidential or
exempt from disclosure under applicable law. If this is a forwardedmessage,
the content of this E-MAIL may not have been sent with the authority ofthe
Company. If you are not the intended recipient, an agent of the intended
recipient or a person responsible for delivering the information to thenamed
recipient, you are notified that any use, distribution, transmission,printing,
copying or dissemination of this information in any way or in any manneris
strictly prohibited. If you have received this communication in error,please
delete this mail & notify us immediately at mailadmin@w...
[Non-text portions of this message have been removed]
[email protected] -
RE: [iPlanet-JATO] Href click & tiled view display
Srinivas,
I hope that I am not oversimplifying your first question; repost if I do not
answer your question. Independent of JATO, HTML Form button sumbits will
include the scraping of data off the form input fields; the data will passed
as part of the body of the HTTP request. Therefore, you would expect to
receive all your inputs during the Button submit. In the case of a button,
a HTTP POST request is invoked. Href clicks, only submit the NVPs which are
encoded on the HREF URL. Therefore, it is impossible (under normal
circumstances) to retrieve the inputs from the FORM during the Href click.
In the case of a Href, a HTTP GET request is invoked. Some customers have
used a pattern in which Javascript is used to capture the Href onClick()
event to perform some runtime modifications to the HREF URL before the HTTP
GET request is submitted. I recommend to always have the LogProxy2 utility
running during development so that the HTTP requests and repsonses can be
debugged. If you setup the LogProxy2 (downloadable from this Group's Files
repository) then you would see the HTTP requests in the LogProxy2's console
window.
TiledView question: Remember, each TiledView requires a "primary
DatasetModel" which it uses for iteration of the tiles. It can be
confusing, but the API call of
<ContainerView>.getDefaultModel()
has no relation to the implementation class called DefaultModel. See the
Javadoc (excerp below)
/migtoolbox-1.1.1/doc/jato/api/com/iplanet/jato/view/ContainerView.html#getD
efaultModel()
"Returns this view's default model. The default model is typically used by
DisplayField children for default value storage (if they are not bound to
any other model). This method should always return a valid model instance.
Note that the default model need not be an actual instance of DefaultModel,
although this is usually the case."
Both of your TiledView's (inner and outer) are ContainerViews, each having
their own property for [get/set]DefaultModel(). Likewise, the ViewBean
parent of the outer TiledView is a ContainerView as well. With these facts
in mind, consider the behavior of the ModelManager. The ModelManager will
ensure that only once instance of specifically named model will be provided
during a request scope. Therefore, everytime that you make a call to
<ModelManager>.getModel(SomeModel.class)
no matter how many times you make this call during a request, the
ModelManager will ensure that you get the same object reference back.
Implicitly, you are asking for a Model with the exclusive name of
<ModelManager>.getDefaultModelInstanceName(SomeModel.class)
I believe that your problem is that you have the Primary Model of both the
inner and outer TiledView's set to the same instance of the DefaultModel
class. Therefore, the TiledViews are tripping over each other because they
are using the same Primary model. What I would do is change the constructor
of each TiledView to set an exclusive Primary model
// add to constructor of outer TileView
setPrimaryModel(getModelI(DefaultModel.class,"outer")
// add to constructor of inner TileView
setPrimaryModel(getModelI(DefaultModel.class,"inner")
remember to set the "size" of the Primary Model appropriately in the
beginDisplay() event of each TiledView before calling super.beginDisplay()
matt
-----Original Message-----
From: Srinivas Chikkam [mailto:<a href="/group/SunONE-JATO/post?protectID=061212020185082096169232190043244089032032196034013195172049230091142254099102">srinivas.chikkam@w...</a>]
Sent: Tuesday, July 17, 2001 7:36 AM
Subject: [iPlanet-JATO] Href click & tiled view display
Hi,
I'm facing the following two problems in JATO. Your help will be
appreciated.
1) Clicking a HREF.
I have a button and a href in a page. When I submit the page by
clicking the button, I'm able to
get all the user entered data (form elements) in handler method.
However, when I click
the href and I try to retrieve the data entered by the user in my
corresponding handler method, I'm
getting blank values.
How would I be able to get the user entered data upon clicking of a href
? I'm copying the sample
code for your reference.
// This returns me 5 values entered in the 5 tiles by the user.
public void handleBButtonRequest(RequestContext req)
throws ServletException, IOException
try
System.out.println("button clicked..");
pgSampleTiledView tiledView = getSampleTile();
System.out.println("\n\n\n\n@@@@@@@@@@@ No of tiles >>>
"+tiledView.getNumTiles());
int n = tiledView.getNumTiles();
for (int i=0; i<n; i++)
tiledView.setTileIndex(i);
System.out.println(i+".
"+tiledView.getTbValue().getValue().toString());
this.forwardTo(req);
catch (Exception ex)
ex.printStackTrace();
// This returns me 0 tiles and doesn't get into for loop
public void handleLinkModifyDistributionRequest(RequestContext req )
throws ServletException, IOException
try
System.out.println("href clicked..");
pgSampleTiledView tiledView = getSampleTile();
System.out.println("\n\n\n\n@@@@@@@@@@@ No of tiles >>>
"+tiledView.getNumTiles());
int n = tiledView.getNumTiles();
for (int i=0; i<n; i++)
tiledView.setTileIndex(i);
System.out.println(i+".
"+tiledView.getTbValue().getValue().toString());
this.forwardTo(req);
catch (Exception ex)
ex.printStackTrace();
2) Tiled view display
I have tiled view inside another tiled view. Based upon the data
retrieved from the database, lets say, the outer tile needs to be
displayed twice and the inner tile 3 times and 1 time.
For Ex: Lets say, the desired output from these tiled views is as
follows
STOCK INVESTMENT
stock name1
stock name2
stock name3
OTHER INVESTMENT
other investment1
The outer tiled view displays the investment type headings (STOCK
INVESTMENT or OTHER INVESTMENT) and inner tile
displays the actual stock names or the other investment names. Both
the tile views are bound to a default model. In the begin display
of these tiled view I'm setting the size of the model as
getPrimaryModel.setSize(requiredsize).
If i display 3 records in the inner tiled view in the first iteration
and i try to display 1 record in the second iteration, it displays 3
records
properly the first time but it doesn't display any records second
time. super.nextTile() returns false right away second time.
But If I try to display 1 record in the first iteration and 3 records in
the second iteration as below, it works fine.
STOCK INVESTMENT
stock name1
OTHER INVESTMENT
other investment1
other investment2
other investment3
Please let me know what could be the problem.
Thanks
~ Srinivas
The Information contained and transmitted by this E-MAIL is
proprietary to
Wipro Limited and is intended for use only by the individual or
entity to which
it is addressed, and may contain information that is privileged,
confidential or
exempt from disclosure under applicable law. If this is a
forwarded message,
the content of this E-MAIL may not have been sent with the
authority of the
Company. If you are not the intended recipient, an agent of the intended
recipient or a person responsible for delivering the information
to the named
recipient, you are notified that any use, distribution,
transmission, printing,
copying or dissemination of this information in any way or in any
manner is
strictly prohibited. If you have received this communication in
error, please
delete this mail & notify us immediately at mailadmin@w...
[Non-text portions of this message have been removed]
[email protected]should read
// add to constructor of outer TileView
setPrimaryModel(getModel(DefaultModel.class,"outer");
// add to constructor of inner TileView
setPrimaryModel(getModel(DefaultModel.class,"inner");
matt
-----Original Message-----
From: Matthew Stevens [mailto:<a href="/group/SunONE-JATO/post?protectID=029166114165042198028082000056130080177026031196061123241150194211220076086020224">matthew.stevens@e...</a>]
Sent: Tuesday, July 17, 2001 9:25 AM
Subject: RE: [iPlanet-JATO] Href click & tiled view display
Srinivas,
I hope that I am not oversimplifying your first question; repost
if I do not
answer your question. Independent of JATO, HTML Form button sumbits will
include the scraping of data off the form input fields; the data
will passed
as part of the body of the HTTP request. Therefore, you would expect to
receive all your inputs during the Button submit. In the case of
a button,
a HTTP POST request is invoked. Href clicks, only submit the
NVPs which are
encoded on the HREF URL. Therefore, it is impossible (under normal
circumstances) to retrieve the inputs from the FORM during the Href click.
In the case of a Href, a HTTP GET request is invoked. Some customers have
used a pattern in which Javascript is used to capture the Href onClick()
event to perform some runtime modifications to the HREF URL
before the HTTP
GET request is submitted. I recommend to always have the
LogProxy2 utility
running during development so that the HTTP requests and repsonses can be
debugged. If you setup the LogProxy2 (downloadable from this
Group's Files
repository) then you would see the HTTP requests in the
LogProxy2's console
window.
TiledView question: Remember, each TiledView requires a "primary
DatasetModel" which it uses for iteration of the tiles. It can be
confusing, but the API call of
<ContainerView>.getDefaultModel()
has no relation to the implementation class called DefaultModel. See the
Javadoc (excerp below)
/migtoolbox-1.1.1/doc/jato/api/com/iplanet/jato/view/ContainerView
.html#getD
efaultModel()
"Returns this view's default model. The default model is typically used by
DisplayField children for default value storage (if they are not bound to
any other model). This method should always return a valid model instance.
Note that the default model need not be an actual instance of
DefaultModel,
although this is usually the case."
Both of your TiledView's (inner and outer) are ContainerViews, each having
their own property for [get/set]DefaultModel(). Likewise, the ViewBean
parent of the outer TiledView is a ContainerView as well. With
these facts
in mind, consider the behavior of the ModelManager. The ModelManager will
ensure that only once instance of specifically named model will
be provided
during a request scope. Therefore, everytime that you make a call to
<ModelManager>.getModel(SomeModel.class)
no matter how many times you make this call during a request, the
ModelManager will ensure that you get the same object reference back.
Implicitly, you are asking for a Model with the exclusive name of
<ModelManager>.getDefaultModelInstanceName(SomeModel.class)
I believe that your problem is that you have the Primary Model of both the
inner and outer TiledView's set to the same instance of the DefaultModel
class. Therefore, the TiledViews are tripping over each other
because they
are using the same Primary model. What I would do is change the
constructor
of each TiledView to set an exclusive Primary model
// add to constructor of outer TileView
setPrimaryModel(getModelI(DefaultModel.class,"outer")
// add to constructor of inner TileView
setPrimaryModel(getModelI(DefaultModel.class,"inner")
remember to set the "size" of the Primary Model appropriately in the
beginDisplay() event of each TiledView before calling super.beginDisplay()
matt
-----Original Message-----
From: Srinivas Chikkam [mailto:<a href="/group/SunONE-JATO/post?protectID=061212020185082096169232190043244089032032196034013195172049230091142254099102">srinivas.chikkam@w...</a>]
Sent: Tuesday, July 17, 2001 7:36 AM
Subject: [iPlanet-JATO] Href click & tiled view display
Hi,
I'm facing the following two problems in JATO. Your help will be
appreciated.
1) Clicking a HREF.
I have a button and a href in a page. When I submit the page by
clicking the button, I'm able to
get all the user entered data (form elements) in handler method.
However, when I click
the href and I try to retrieve the data entered by the user in my
corresponding handler method, I'm
getting blank values.
How would I be able to get the user entered data upon clicking of a href
? I'm copying the sample
code for your reference.
// This returns me 5 values entered in the 5 tiles by the user.
public void handleBButtonRequest(RequestContext req)
throws ServletException, IOException
try
System.out.println("button clicked..");
pgSampleTiledView tiledView = getSampleTile();
System.out.println("\n\n\n\n@@@@@@@@@@@ No of tiles >>>
"+tiledView.getNumTiles());
int n = tiledView.getNumTiles();
for (int i=0; i<n; i++)
tiledView.setTileIndex(i);
System.out.println(i+".
"+tiledView.getTbValue().getValue().toString());
this.forwardTo(req);
catch (Exception ex)
ex.printStackTrace();
// This returns me 0 tiles and doesn't get into for loop
public void handleLinkModifyDistributionRequest(RequestContext req )
throws ServletException, IOException
try
System.out.println("href clicked..");
pgSampleTiledView tiledView = getSampleTile();
System.out.println("\n\n\n\n@@@@@@@@@@@ No of tiles >>>
"+tiledView.getNumTiles());
int n = tiledView.getNumTiles();
for (int i=0; i<n; i++)
tiledView.setTileIndex(i);
System.out.println(i+".
"+tiledView.getTbValue().getValue().toString());
this.forwardTo(req);
catch (Exception ex)
ex.printStackTrace();
2) Tiled view display
I have tiled view inside another tiled view. Based upon the data
retrieved from the database, lets say, the outer tile needs to be
displayed twice and the inner tile 3 times and 1 time.
For Ex: Lets say, the desired output from these tiled views is as
follows
STOCK INVESTMENT
stock name1
stock name2
stock name3
OTHER INVESTMENT
other investment1
The outer tiled view displays the investment type headings (STOCK
INVESTMENT or OTHER INVESTMENT) and inner tile
displays the actual stock names or the other investment names. Both
the tile views are bound to a default model. In the begin display
of these tiled view I'm setting the size of the model as
getPrimaryModel.setSize(requiredsize).
If i display 3 records in the inner tiled view in the first iteration
and i try to display 1 record in the second iteration, it displays 3
records
properly the first time but it doesn't display any records second
time. super.nextTile() returns false right away second time.
But If I try to display 1 record in the first iteration and 3 records in
the second iteration as below, it works fine.
STOCK INVESTMENT
stock name1
OTHER INVESTMENT
other investment1
other investment2
other investment3
Please let me know what could be the problem.
Thanks
~ Srinivas
The Information contained and transmitted by this E-MAIL is
proprietary to
Wipro Limited and is intended for use only by the individual or
entity to which
it is addressed, and may contain information that is privileged,
confidential or
exempt from disclosure under applicable law. If this is a
forwarded message,
the content of this E-MAIL may not have been sent with the
authority of the
Company. If you are not the intended recipient, an agent of the intended
recipient or a person responsible for delivering the information
to the named
recipient, you are notified that any use, distribution,
transmission, printing,
copying or dissemination of this information in any way or in any
manner is
strictly prohibited. If you have received this communication in
error, please
delete this mail & notify us immediately at mailadmin@w...
[Non-text portions of this message have been removed]
[email protected]
[email protected] -
[Solved] Tiling window managers and on-screen keyboards
I've got a small, old tablet pc with a 10" touchscreen, and was hoping to use a tiling window manager so that I could have an on-screen keyboard (onboard, cellwriter etc) stuck to the bottom third of the screen, and other applications 'fullscreened' in the rest of it, preferably in tabs.
I've tried a few tabbed tiling wm's (i3, xmonad, wmii, ion3) and while I can get the layout I want, I'm unable to use the onscreen keyboard due to focus switching - clicking on the 'keys' of the keyboard (or in fact, moving the cursor into it's frame/window/whatever) moves the focus to the keyboard, so it sends the typed text to itself.
Since tiling wm's are usually targeted at keyboard users, I'm having trouble finding which wm's listen to the onscreen keyboard's 'nofocus' properties. Does anyone know of any tiling wm's that respect that property and work with onscreen keyboards? Or even if there are simple config changes I can do to stop the keyboard from getting focus?
Failing that, any other window managers I could try? fwiw, I really liked twindy (http://www.niallmoody.com/twindy/about.htm) but it suffered from the same problem (and wasted a fair amount of space with its sidebar).
Thanks!
Last edited by mjc506 (2010-12-10 00:41:01)Ah, thanks, that got me looking for and finding an xmonad patch that should make it not focus on onboard and cellwriter, amongst others: http://code.google.com/p/xmonad/issues/detail?id=177 Its a shame that the patch still isn't in the darcs repo, but I guess a working open office is more important that the few people using onscreen keyboards!
...time to compile from source... ugh - only got a single core running at 900kHz... -
Animated gif is tiling when opened on iPad email
I am trying to design a simple email blast with an animated gif which i have been doing so for 5 years. today, i designed a new email blast for my client and it works perfectly on all my email accounts including mac mail and thunderbird. however, when i view the same email on my ipad3 i find the art work is tiling both on the x and y axis and the animation no longer works. the html form i used for this is:
<html>
<head>
<title>www.drotardesign.com </title>
</head>
<body>
<table width="500" border="0" align="center" cellpadding="0"
cellspacing="10">
<style>
a:link { color:#F60; text-decoration: none;}
a:visited { color:#900;}
a:hover { color:#F33;}
</style>
<tr>
<td width="400"><div align="center"><font color="black" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong> drotardesign is proud to announce the release of his newest website for Director John Behring
at</strong></font><strong><font color=”red” size="5" face="Verdana, Arial, Helvetica, sans-serif" ><br>
<a href="http://www.johnbehring.tv">www.johnbehring.tv </a></font></strong></div></td>
</tr>
</table>
<table width="600" height="600" border="0" align="center" cellpadding="0" cellspacing="0" background="http://www.johnbehring.tv/email/hero.gif">
<tr>
<td> </td>
</tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td width="500"><div align="center"><font color="#000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>drotardesign.com specializes in HTML5 | jQuery | Ajax | PhP | Flash | Design & Programming for Smart Phones, Tablets & the Web. Please visit his definitive portfolio @ </strong></font><strong><font color="#FFFFFF" size="4" face="Verdana, Arial, Helvetica, sans-serif"><br>
<a href="http://www.drotardesign.com">www. drotardesign.com </a></font></strong></div></td>
</tr>
</table>
</body>
</html>Hi Tom
The email language is in English, and it is the only email source that seems to suffer from this issue. Its distributed weekly but I only noticed the problem a few months back - prior to that it was fine.
Ordinarily I wouldn't be too hung up about it as I can always read on another device or even log into my gmail from the safari browser (where it renders perfectly) - but given it displays without issue on the ipad, I was just curious to see if there was some config issue on the phone.
Have attached a screenshot to see if it helps. You'll see that the mail begins out normally in English and then deteriorates after a few sentences, possibly initially starting with the first use of the € Euro symbol.
Rgds
SPK -
Sharing information between tiled view and view bean
I have come across one more problem. I have a search result
page. This search result page has a static text field and a repeated group
(I simplified the page description, for explanation purpose). In the NetD
implementation they are maintaining a page level attribute (say boolean
haveSenisitiveCustomers) and setting this attribute in the
afterDataObjectExecute event. (This data object is associated with the
repeated). In end display event of static text field, they are displaying
message say " due to Registration type, not all customers meeting the
criteria are listed") if the haveSensitiveCustomers flag is set.
After Migration, the boolean flag and static Text Field movedto
SearchResultViewBean and afterDataObjectExecuteEvent has moved to
TiledViewBean. Actual processing done is more complicated than this
explanation. However, it boils down to sharing information between
tiledViewBean and its parent bean. How do we achieve this in the Migrated
Application?
One way is to add getter methods in the child tiled view bean( to
access in parent view bean, call getRepeated1 and cast to the actual type
and invoke the get methods)Probably the typical solution (I say typical because I don't yet know) will
be to do what you suggest: provide methods between views that can be used to
determine the state needed for processing like this.
However, let me alert you to something that's different than ND, and which
may cause you some trouble. In ND, all retrieving DataObjects associated
with a page executed at one time, and the afterDataObjectExcecuteEvent fired
before any display processing began. However, in JATO, tiled views are
independent objects, and any models associated with them only execute when
the tiled view is first displayed.
Therefore, if the static test field you refer to appears in the page before
the tiled view, then the tiled view will not have executed its associated
model before the static text field is rendered. You will never see the
static text field display the text you want because you won't have the
information at display time. (If the text field appears after the repeated,
then it's not problem, as the display of the tiled view will have executed
the associate model before the field displays.)
The solution is to manually reference the tiled view and its associate model
before they would normally execute. You would execute the model and set the
tiled view's setAutoRetrieveEnabled() to false to prevent it from executing
the model a second time. Perhaps the easiest thing to do would be this:
beforeStaticTextDisplay(...)
// Force the tiled view to execute the associated model
Repeated1TiledView tiledView=
(Repeated1TiledView)getChild("Repeated1");
tiledView.beginDisplay();
tiledView.setAutoRetrieveEnabled(false);
Although the beginDisplay() method will be executed twice in this case (once
deliberately, above, and later during actual display), there should be no
overhead. The beginDisplay() method doesn't do anything anyway except
execute associated auto-retrieving models and fire the
afterAllModelsExecute() event.
Mike, do you concur or have any comments?
This explanation rests on the understanding of a number of other subjects,
some of which you may not be fully familiar with. Feel free to ask further
questions about this explanation.
Todd
Todd Fast
Senior Engineer
Sun/Netscape Alliance
todd.fast@e...I have come across one more problem. I have a search result
page. This search result page has a static text field and a repeated group
(I simplified the page description, for explanation purpose). In the NetD
implementation they are maintaining a page level attribute (say boolean
haveSenisitiveCustomers) and setting this attribute in the
afterDataObjectExecute event. (This data object is associated with the
repeated). In end display event of static text field, they are displaying
message say " due to Registration type, not all customers meeting the
criteria are listed") if the haveSensitiveCustomers flag is set.
After Migration, the boolean flag and static Text Field movedto
SearchResultViewBean and afterDataObjectExecuteEvent has moved to
TiledViewBean. Actual processing done is more complicated than this
explanation. However, it boils down to sharing information between
tiledViewBean and its parent bean. How do we achieve this in the Migrated
Application?
One way is to add getter methods in the child tiled view bean( to
access in parent view bean, call getRepeated1 and cast to the actual type
and invoke the get methods)Probably the typical solution (I say typical because I don't yet know) will
be to do what you suggest: provide methods between views that can be used to
determine the state needed for processing like this.
However, let me alert you to something that's different than ND, and which
may cause you some trouble. In ND, all retrieving DataObjects associated
with a page executed at one time, and the afterDataObjectExcecuteEvent fired
before any display processing began. However, in JATO, tiled views are
independent objects, and any models associated with them only execute when
the tiled view is first displayed.
Therefore, if the static test field you refer to appears in the page before
the tiled view, then the tiled view will not have executed its associated
model before the static text field is rendered. You will never see the
static text field display the text you want because you won't have the
information at display time. (If the text field appears after the repeated,
then it's not problem, as the display of the tiled view will have executed
the associate model before the field displays.)
The solution is to manually reference the tiled view and its associate model
before they would normally execute. You would execute the model and set the
tiled view's setAutoRetrieveEnabled() to false to prevent it from executing
the model a second time. Perhaps the easiest thing to do would be this:
beforeStaticTextDisplay(...)
// Force the tiled view to execute the associated model
Repeated1TiledView tiledView=
(Repeated1TiledView)getChild("Repeated1");
tiledView.beginDisplay();
tiledView.setAutoRetrieveEnabled(false);
Although the beginDisplay() method will be executed twice in this case (once
deliberately, above, and later during actual display), there should be no
overhead. The beginDisplay() method doesn't do anything anyway except
execute associated auto-retrieving models and fire the
afterAllModelsExecute() event.
Mike, do you concur or have any comments?
This explanation rests on the understanding of a number of other subjects,
some of which you may not be fully familiar with. Feel free to ask further
questions about this explanation.
Todd
Todd Fast
Senior Engineer
Sun/Netscape Alliance
todd.fast@e... -
Tiling Marks in Illustrator- PLEASE HELP
Hi,
I'm trying to tile a large graphic in Illustrator CS4. Printing it is fine. It tiles fine. The problem is getting marks on each page so I can put the thing together properly. I'm working with many sheets so I need some sort of reference for the tiling. InDesign puts marks on each tile so that you can build it seamlessly. How do you get similar marks out of Illustrator? Adding trim marks from the print dialog only gives crops around the final trim size. I need marks on each tile to be able to trim the overlap and bleed off, line it up to the next tile and put it together. I'm making corrections to the graphic as I go, so placing manual marks is a pain in a%$ and time consuming. I'm sure there's som stupid checkbox I'm missing as I think this should be a very simple task- at least it used to be. Any and all suggestions are greatly appreciated.This thread is old but I'm adding to it in case someone's search points them here.
Luke Jennings's suggestion of printing from Acrobat works. Just select the "Tile Large Pages" option from the "Paper Scaling" menu in the print dialog box, then check the 'Cut Mark' box. You can also place your Illustrator EPS in InDesign and print with tiling. InDesign prints tiled pages with cut marks.
It's odd that Illustrator doesn't provide cut marks when tiling, but the above are viable workarounds. -
Movies now play with picture tiling effect
I have Quicktime Pro - for a year now - everything fine - don't know what happened - maybe when I did the update prompted by ITunes? All files I was able to view previously appear to be tiled. Audio is fine.
I have tried to re-register with my Pro key but no change. I have Quicktime 7.4.1 now. Don't know what I had before ITunes updated it.
Everything does go onto my Ipod fine though, no issues there...yet...
I went to the Quicktime page and downloaded it again. It then asked if I wanted to repair or (remove?)- I chose repair. Then tried registering again - no changeOpen the QuickTime Control Panel / Video tab and check the box for "Safe mode".
Quit and relaunch QuickTime and any open browser and try the page/file again. -
Can I Save a Single .AI Document As Multiple Files, Seperated by the Page Tiling?
There must be a way to save or output a single Adobe Illustrator file into multiple files based on the "pages" I have created in the document?
For example, if I have tiled 10 tabloid-sized pages onto a single Illustrator CS3 .AI file, is it possible to save the file in a manner that will allow all of those tiled pages to be saved as a seperated or individual files?
I guess it would be a similar concept to how in newer versions (like CS4) you can export multiple jpegs of an illustrator file that contains several artboards and it automatically assigns a number suffix to the filename since multiple files were outputted from the single ai file.
Any help is MUCH appreciated. Thanks!Please post your question in the Illustrator forum. This forum is for suite specific issues only.
Bob -
Action on Button in a Tiled View
HI,
Does anyone have a sample code/insight/thoughts on how I could
implement the following ??
I have a button inside a tiled view. If the user clicks on one of the
buttons in the list - I need to perform a certain action - basically
delete that row from the tiled view (and do some other stuff) and re-
display the list.
Thank you
AtulHello Moises
The problem with this solution is that if you ever need to modify your maintenance view (i.e. regenerate the dynpros because you may want to add new fields) your coding is gone.
This is not the case if you are using event 19. Below you see same sample coding:
***INCLUDE LZUS_SDN_MAINTF01 . " Function Group with maintenance views
* Event 19: After Init. Global Variables, Field Symbols, etc.
* http://help.sap.com/saphelp_nw2004s/helpdata/en/91/ca9f44a9d111d1a5690000e82deaaa/content.htm
FORM exclude_gui_function.
* define local data
DATA: ls_excl TYPE vimexclfun.
ls_excl-function = 'DELE'. " taken from standard GUI-status 'ZULG'
BREAK-POINT.
AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
ID 'BUKRS' FIELD '1000'
ID 'ACTVT' FIELD '02'.
IF ( syst-subrc NE 0 ).
APPEND ls_excl TO excl_cua_funct.
ENDIF.
APPEND ls_excl TO excl_cua_funct. " Just for the purpose of demonstration
ENDFORM. "exclude_gui_function
Regards
Uwe
Maybe you are looking for
-
Purchase Requisition number (current number) not seen correctly in OMI2
Hi All, I see purchase requisition number created for the last number in the number range defined for Purchase Req., but i do not see the last number in the "current number" area. What are the possible reason for this ? Regards, PSS Edited by: PSS on
-
Moving Thunderbold DAS with software RAID 1 to different Mac
Background: I am preparing to wipe my iMac (currently Mavericks) to then do a clean install of Yosemite. Attached to my iMac is a "WD MyBook Thunderbolt Duo". This external "DAS" drive model is a single enclosure that contains two, 2TB physical dr
-
Although my thumbnail image displays fine, the open new browser window Behavior does not work (on any browser) on this page, although it does in others. Here's the code: <td colspan="11" rowspan="7" valign="top"><div align="center"><img src="images/N
-
Is there any way to use the drop down box or "combo box" with numbers in a calculation for another field. ex. "Combo box1"= 500 , 1000, 2000 and "Text1" calculation should be "Combo box1 - 25" It doesn't seem to recognize the number in "Combo Box1"
-
Hi Gurus, I need to achieve [netvalue] of current month and previous 11 months i.e rolling 12 months net value. In universe there is no date object , there's only Fiscal year(number) and Fisal month(string) How Can i achive the Total net value of rol